diff --git a/.dockerignore b/.dockerignore index d298dcaad3..ea89279094 100644 --- a/.dockerignore +++ b/.dockerignore @@ -28,6 +28,9 @@ bin /site/public /test +# Allow upgrade test directory +!/test/upgrade + # Created by .ignore support plugin (hsz.mobi) ### Go template # Binaries for programs and plugins diff --git a/.github/ISSUE_TEMPLATE/golang_version_upgrade.md b/.github/ISSUE_TEMPLATE/golang_version_upgrade.md index 42326bb316..95b020c46c 100644 --- a/.github/ISSUE_TEMPLATE/golang_version_upgrade.md +++ b/.github/ISSUE_TEMPLATE/golang_version_upgrade.md @@ -9,19 +9,23 @@ assignees: '' Steps to upgrade Golang version: -- [ ] Update `go.mod` and `go.sum`. At the root of the directory, run: +- [ ] Update `go.mod` and `go.sum`. At the root (agones) directory, run: - [ ] `find . -name 'go.mod' -not -path '*/\.*' -execdir go mod edit -go= \;` - [ ] `find . -name 'go.mod' -not -path '*/\.*' -execdir go mod tidy \;` -- [ ] Update the Dockerfiles for `build` directory. - - - [ ] At the root of the directory, run: `find build -type f \( -not -path '*/\.*' -and -not -path 'build/tmp/*' \) -exec sed -i 's/GO_VERSION=[0-9]\+\.[0-9]\+\.[0-9]\+/GO_VERSION=/g' {} \;` +- [ ] Update the Dockerfiles for `build` directory. + - [ ] At the root directory, run: `find build -type f \( -not -path '*/\.*' -and -not -path 'build/tmp/*' \) -exec sed -i 's/GO_VERSION=[0-9]\+\.[0-9]\+\.[0-9]\+/GO_VERSION=/g' {} \;` - [ ] Update the `golang` version for file `build/agones-bot/Dockerfile` to - -- [ ] Update the Dockerfiles for `examples` directory. At the root of the directory, run: + +- [ ] Update the Dockerfiles for `test` directory. + - [ ] At the root directory, run: `find test -type f -exec sed -i 's/golang:[0-9]\+\.[0-9]\+\.[0-9]\+/golang:/g' {} \;` + - [ ] At the root directory, run: `find test -type f -exec sed -i 's/go [0-9]\+\.[0-9]\+\.[0-9]\+/go /g' {} \;` + - [ ] At the root directory, run: `find test -type f -name 'go.mod' -execdir go mod tidy \;` + +- [ ] Update the Dockerfiles for `examples` directory. At the root directory, run: - [ ] `find examples -name Dockerfile -exec sed -i 's/golang:[0-9]\+\.[0-9]\+-alpine/golang:-alpine/g' {} \;` - [ ] `find examples \( -name Dockerfile -o -name Dockerfile.windows \) -exec sed -i 's/golang:[0-9]\+\.[0-9]\+\.[0-9]\+/golang:/g' {} \;` - + - [ ] Update the example images tag. At `build` directory, run: - [ ] `make bump-image IMAGENAME=allocation-endpoint-proxy VERSION=` - [ ] `make bump-image IMAGENAME=autoscaler-webhook VERSION=` @@ -44,4 +48,4 @@ Steps to upgrade Golang version: - [ ] Create a PR for the above changes and send for review -- [ ] Merge the above PR after it is approved \ No newline at end of file +- [ ] Merge the above PR after it is approved diff --git a/.github/ISSUE_TEMPLATE/kubernetes_update.md b/.github/ISSUE_TEMPLATE/kubernetes_update.md index 9a4af7045e..597d786957 100644 --- a/.github/ISSUE_TEMPLATE/kubernetes_update.md +++ b/.github/ISSUE_TEMPLATE/kubernetes_update.md @@ -7,65 +7,128 @@ assignees: '' --- -Agones supports and is tested against 3 releases of Kubernetes, targeting the newest version as being the [default version in the GKE Rapid channel](https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions). The vendored version of client-go will be aligned with the middle of the three supported Kubernetes versions ({version_2}). All the example clusters will use the middle of the three supported Kubernetes versions ({version_2}). +Agones supports and is tested against 3 releases of Kubernetes, targeting the newest version as +being the [default version in the GKE Rapid channel](https://cloud.google.com/kubernetes-engine/docs/release-notes#current_versions). +The vendored version of client-go will be aligned with the middle of the three supported Kubernetes +versions ({version_2}). All the example clusters will use the middle of the three supported +Kubernetes versions ({version_2}). List of items to do for upgrading to {version_1} {version_2} {version_3} - [ ] Update the cluster version of terraform submodules in `install/terraform/modules` - - [ ] Update Kubernetes version of GKE cluster (both `gke` and `gke-autopilot`) to {version_2} - - [ ] Update Kubernetes version of AKS to the newest supported version in {version_1} {version_2} {version_3} - - [ ] Update Kubernetes version of EKS to the newest supported version in {version_1} {version_2} {version_3} -- [ ] Update kubectl in dev tooling to {version_2}, the latest patch version can be found [here](https://kubernetes.io/releases/) - - [ ] Update kubectl in `build/build-image/Dockerfile` - - [ ] Update kubectl in `build/e2e-image/Dockerfile` + - [ ] Update Kubernetes version of GKE cluster (both `gke` and `gke-autopilot`) to {version_2} + - [ ] Update Kubernetes version of AKS to the newest supported version in {version_1} {version_2} + {version_3} + - [ ] Update Kubernetes version of EKS to the newest supported version in {version_1} {version_2} + {version_3} +- [ ] Update kubectl in dev tooling to {version_2}, the latest patch version can be found + [here](https://kubernetes.io/releases/) + - [ ] Update kubectl in `build/build-image/Dockerfile` + - [ ] Update kubectl in `build/e2e-image/Dockerfile` + - [ ] Update kubectl in `test/upgrade/Dockerfile` - [ ] Update the Kubernetes version of the below test clusters to {version_2} - - [ ] Minikube in `build/includes/minikube.mk` (Get the patch version [here](https://kubernetes.io/releases/) since minikube supports the latest Kubernetes release) - - [ ] Kind in `build/includes/kind.mk` (Confirm {version_2} is supported and get the patch version [here](https://github.com/kubernetes-sigs/kind/releases)) -- [ ] Update the k8s image used in the helm [pre-delete-hook](https://github.com/googleforgames/agones/blob/main/install/helm/agones/templates/hooks/pre_delete_hook.yaml) to {version_2} (Get the patch version [here](https://hub.docker.com/r/bitnami/kubectl)) -- [ ] Update client-go in `go.mod` to {version_2} by running `go get k8s.io/client-go@{CORRESPONDING_VERSION}` and `go get k8s.io/apiextensions-apiserver@{CORRESPONDING_VERSION}`, then re-run `go mod tidy` and `go mod vendor` + - [ ] Minikube in `build/includes/minikube.mk` (Get the patch version [here](https://kubernetes.io/releases/) + since minikube supports the latest Kubernetes release) + - [ ] Kind in `build/includes/kind.mk` (Confirm {version_2} is supported and get the patch version + [here](https://github.com/kubernetes-sigs/kind/releases)) +- [ ] Update the k8s image used in the helm [pre-delete-hook](https://github.com/googleforgames/agones/blob/main/install/helm/agones/templates/hooks/pre_delete_hook.yaml) + to {version_2} (Get the patch version [here](https://hub.docker.com/r/bitnami/kubectl)) +- [ ] Update client-go in `go.mod` to {version_2} by running `go get k8s.io/client-go@{CORRESPONDING_VERSION}` + and `go get k8s.io/apiextensions-apiserver@{CORRESPONDING_VERSION}`, then re-run `go mod tidy` + and `go mod vendor` - [ ] Update CRD API reference to {version_2} - - [ ] Update links to k8s documentation in `site/assets/templates/crd-doc-config.json` - - [ ] Regenerate crd api reference docs - `make gen-api-docs` - - [ ] Regenerate crd client libraries and generated code - `make gen-crd-code` + - [ ] Update links to k8s documentation in `site/assets/templates/crd-doc-config.json` + - [ ] Regenerate crd api reference docs - `make gen-api-docs` + - [ ] Regenerate crd client libraries and generated code - `make gen-crd-code` - [ ] Regenerate Kubernetes resource includes (e.g. ObjectMeta, PodTemplateSpec) - - [ ] Start a cluster with `make gcloud-test-cluster` (this cluster will use Kubernetes {version_2}), uninstall agones using `helm uninstall agones -n agones-system`, and then run `make gen-embedded-openapi` and `make gen-install` -- [ ] Update documentation for creating clusters and k8s API references to align with the above clusters versions and the k8s API version - - [ ] `site/config.toml` - - [ ] `dev_supported_k8s`, which are {version_1} {version_2} {version_3} - - [ ] `dev_k8s_api_version`, which is {version_2} - - [ ] `dev_gke_example_cluster_version`, which is {version_2} - - [ ] `dev_aks_example_cluster_version`, which is the newest AKS supported version in {version_1} {version_2} {version_3} - - [ ] `dev_eks_example_cluster_version`, which is the newest EKS supported version in {version_1} {version_2} {version_3} - - [ ] `dev_minikube_example_cluster_version`, which is {version_2} with the supported patch version + - [ ] Start a cluster with `make gcloud-test-cluster` (this cluster will use Kubernetes + {version_2}), uninstall agones using `helm uninstall agones -n agones-system`, and then run + `make gen-embedded-openapi` and `make gen-install` +- [ ] Update documentation for creating clusters and k8s API references to align with the above + clusters versions and the k8s API version + - [ ] `site/config.toml` + - [ ] `dev_supported_k8s`, which are {version_1} {version_2} {version_3} + - [ ] `dev_k8s_api_version`, which is {version_2} + - [ ] `dev_gke_example_cluster_version`, which is {version_2} + - [ ] `dev_aks_example_cluster_version`, which is the newest AKS supported version in + {version_1} {version_2} {version_3} + - [ ] `dev_eks_example_cluster_version`, which is the newest EKS supported version in + {version_1} {version_2} {version_3} + - [ ] `dev_minikube_example_cluster_version`, which is {version_2} with the supported patch version - [ ] If client-go pulled in a new version of gRPC, then also - - [ ] Update the `grpc_release_tag` in the SDK [base image grpc version](https://github.com/googleforgames/agones/blob/main/build/includes/sdk.mk). - - [ ] Update the gRPC version number in C++ gRPC Dependency documentation [here](https://github.com/googleforgames/agones/blob/main/site/content/en/docs/Guides/Client%20SDKs/cpp.md). - - [ ] Update the gRPC version - ([Dockerfile](https://github.com/googleforgames/agones/blob/main/examples/cpp-simple/Dockerfile)) and - increment the image tag - ([Makefile](https://github.com/googleforgames/agones/blob/main/examples/cpp-simple/Makefile)) in the C++ - `cpp-simple` example. - - [ ] Regenerate all client sdks: [make gen-all-sdk-grpc](https://github.com/googleforgames/agones/blob/main/build/README.md#make-gen-all-sdk-grpc) - This can take 20 minutes or so, as the above changes force a rebuild. Plan your day accordingly 😃. - - [ ] Regenerate allocated API endpoints: [make gen-allocation-grpc](https://github.com/googleforgames/agones/blob/main/build/README.md#make-gen-allocation-grpc) -- [ ] Confirm the update works as expected by running e2e tests - - [ ] Add the new supported Kubernetes versions to the e2e clusters creation - - [ ] In `build/terraform/e2e/module.tf`, add the new supported version to the map `kubernetes_versions` following the instructions in the comment. We maintain sufficient quota for `CPUs` and `In-use Addresses` in `us-east1`, `us-west1`, `europe-west1`, and `asia-east1`, but we only have capacity for one version per region - follow the instructions to rotate the regions through new versions. (Keep the clusters on `RAPID` - we dogfood early versions in CI.) - - [ ] Recreate clusters with new scripts: `cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster` - - [ ] Update the Cloud Build configuration to run e2e test on the new created clusters, and disable the e2e test on the cluster with the oldest supported K8s version - - [ ] Update the `versionsAndRegions` variable to add the new supported version and remove the oldest supported K8s version in `cloudbuild.yaml` `submit-e2e-test-cloud-build` step - - [ ] Update the `featureWithGateByVersion` variable to add the new supported version and remove the oldest supported K8s version in `cloudbuild.yaml` `submit-e2e-test-cloud-build` step - - [ ] Run `make lint` for code quality check. - - [ ] Submit a PR to trigger the e2e tests and verfiy they all pass - - [ ] After the PR that includes the above Cloud Build configuration change has been merged and all the existing pending PRs in the Cloud Build queue have picked up the new configuration, submit a separate PR to update the e2e clusters terraform module to remove the e2e cluster with the oldest supported K8s version. - - [ ] In `build/terraform/e2e/module.tf`, continue following the instructions in the comment to update the `kubernetes_versions` map. - - [ ] Destroy the old clusters with new scripts: `cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster` + - [ ] Update the `grpc_release_tag` in the SDK [base image grpc version](https://github.com/googleforgames/agones/blob/main/build/includes/sdk.mk). + - [ ] Update the gRPC version number in C++ gRPC Dependency documentation [here](https://github.com/googleforgames/agones/blob/main/site/content/en/docs/Guides/Client%20SDKs/cpp.md). + - [ ] Update the gRPC version ([Dockerfile](https://github.com/googleforgames/agones/blob/main/examples/cpp-simple/Dockerfile)) + - [ ] Update the C++ `cpp-simple` image. + - [ ] Update the `cpp-simple` example images tag. At `build` directory, run: + - [ ] `make bump-image IMAGENAME=cpp-simple-server VERSION=` + - [ ] Run the following to generate and push the new `cpp-simple` example images: + - [ ] In `examples/cpp-simple`, run: `make cloud-build` + - [ ] Regenerate all client sdks: [make gen-all-sdk-grpc](https://github.com/googleforgames/agones/blob/main/build/README.md#make-gen-all-sdk-grpc) + This can take 20 minutes or so, as the above changes force a rebuild. Plan your day accordingly 😃. + - [ ] Regenerate allocated API endpoints: [make gen-allocation-grpc](https://github.com/googleforgames/agones/blob/main/build/README.md#make-gen-allocation-grpc) +- [ ] Confirm the update works as expected by running e2e and upgrade tests + - [ ] Add the new supported Kubernetes versions to the e2e clusters creation + - [ ] In `build/terraform/e2e/module.tf`, add the new supported version to the map + `kubernetes_versions` following the instructions in the comment. We maintain sufficient + quota for `CPUs` and `In-use Addresses` in `us-east1`, `us-west1`, `europe-west1`, and + `asia-east1`, but we only have capacity for one version per region - follow the + instructions to rotate the regions through new versions. (Keep the clusters on `RAPID` - + we dogfood early versions in CI.) + - [ ] Recreate clusters with new scripts: `cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster` + - [ ] Add the new supported Kubernetes versions to the upgrade clusters creation + - [ ] In `build/terraform/upgrade/module.tf`, add the new supported version to the map + `kubernetes_versions` following the instructions in the comment. Follow the instructions + to rotate the regions through new versions. (Keep the clusters on `RAPID`.) Note that the + upgrade clusters do not use the exact same regions as the e2e tests. + - [ ] Recreate the clusters with terraform: + ``` + cd build; make shell; cd build/terraform/upgrade + terraform init -backend-config="bucket=agones-images-upgrade-infra-bucket-tfstate" -backend-config="prefix=terraform/state" + terraform apply -var project="agones-images" + ``` + - [ ] Update the Cloud Build configuration to run e2e and ugprade tests on the new created clusters, + and disable the e2e and ugprade tests on the clusters with the oldest supported K8s version + - [ ] Update the `versionsAndRegions` variable to add the new supported version and remove the + oldest supported K8s version in `cloudbuild.yaml` `submit-e2e-test-cloud-build` step + - [ ] Update the `featureWithGateByVersion` variable to add the new supported version and remove + the oldest supported K8s version in `cloudbuild.yaml` `submit-e2e-test-cloud-build` step + - [ ] Update the `versionsAndRegions` variable to add the new supported version and remove the + oldest supported K8s version in `cloudbuild.yaml` `submit-upgrade-test-cloud-build` step + - [ ] Update the `test/upgrade/versionMap.yaml` `k8sToAgonesVersions` to add the new Kubernetes + version. For example: + ``` + ], + "1.32": [ + "Dev" + ] + ``` + - [ ] Run `make lint` for code quality check. + - [ ] Submit a PR to trigger the e2e and upgrade tests and verfiy they all pass + - [ ] After the PR that includes the above Cloud Build configuration change has been merged and + all the existing pending PRs in the Cloud Build queue have picked up the new configuration, + submit a separate PR to update the e2e and upgrade clusters terraform modules to remove the + e2e and upgrade clusters with the oldest supported K8s version. + - [ ] In `build/terraform/e2e/module.tf`, continue following the instructions in the comment to + update the `kubernetes_versions` map. + - [ ] Destroy the old clusters with new scripts: `cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster` + - [ ] In `build/terraform/upgrade/module.tf`, continue following the instructions in the comment + to update the `kubernetes_versions` map. + - [ ] Run the same terraform command as in the previous step: + ``` + cd build; make shell; cd build/terraform/upgrade + terraform init -backend-config="bucket=agones-images-upgrade-infra-bucket-tfstate" -backend-config="prefix=terraform/state" + terraform apply -var project="agones-images" + ``` - [ ] Recreate the performance test cluster, and config the performance test to run on the new cluster - - [ ] In `build/terraform/performance/module.tf`, update the `kubernetes_versions` to {version_2} and make sure the region is always set to `us-central1`. - - [ ] Recreate the cluster with the new script: - ``` - cd build; make shell; cd build/terraform/performance - terraform init -backend-config="bucket=agones-images-performance-infra-bucket-tfstate" -backend-config="prefix=terraform/state" - terraform apply -var project="agones-images" - ``` - - [ ] Update the `_TEST_CLUSTER_NAME` in `ci/perf-test-cloudbuild.yaml` to the name of the new created performance test cluster, and send a PR with the changes. + - [ ] In `build/terraform/performance/module.tf`, update the `kubernetes_versions` to {version_2} + and make sure the region is always set to `us-central1`. + - [ ] Recreate the cluster with the new script: + ``` + cd build; make shell; cd build/terraform/performance + terraform init -backend-config="bucket=agones-images-performance-infra-bucket-tfstate" -backend-config="prefix=terraform/state" + terraform apply -var project="agones-images" + ``` + - [ ] Update the `_TEST_CLUSTER_NAME` in `ci/perf-test-cloudbuild.yaml` to the name of the newly + created performance test cluster, and send a PR with the changes. +- diff --git a/.yamllint b/.yamllint index dbcfbca69d..3e14c20ab9 100644 --- a/.yamllint +++ b/.yamllint @@ -40,6 +40,7 @@ rules: ignore: - /build/.gomod/ - /build/.config/ + - /build/scripts/example-version-checker/tmp - /install/ - /sdks/ - /test/sdk/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f641bc6af..cfbee0538e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## [v1.45.0](https://github.com/googleforgames/agones/tree/v1.45.0) (2024-11-19) + +[Full Changelog](https://github.com/googleforgames/agones/compare/v1.44.0...v1.45.0) + +**Breaking changes:** +- Update Supported Kubernetes to 1.29, 1.30, 1.31 by @kamaljeeti in https://github.com/googleforgames/agones/pull/4024 + +**Implemented enhancements:** +- Dashboard for Agones GameServer State duration by @vicentefb in https://github.com/googleforgames/agones/pull/3947 +- Add Shutdown Delay Seconds to the sdk-client-test containers by @igooch in https://github.com/googleforgames/agones/pull/4030 +- Add a CI check to fail on change to an example without a new version by @wheatear-dev in https://github.com/googleforgames/agones/pull/3940 + +**Fixed bugs:** +- Allowing list based fleet autoscaler to scale up from 0 replicas by @geopaulm in https://github.com/googleforgames/agones/pull/4016 + +**Other:** +- Preparation for Release v1.45.0 by @0xaravindh in https://github.com/googleforgames/agones/pull/4014 +- Update all Rust SDK dependencies to latest versions by @john-haven in https://github.com/googleforgames/agones/pull/4008 +- Write Terraform scripts and docs to show how to create OKE cluster and install Agones by @ouxingning in https://github.com/googleforgames/agones/pull/4023 +- Created performance cluster 1.30 by @kamaljeeti in https://github.com/googleforgames/agones/pull/4031 +- Updates the upgrade terraform by @igooch in https://github.com/googleforgames/agones/pull/4036 +- Adding Fleet Active GameServerSet Percentage Metrics by @0xaravindh in https://github.com/googleforgames/agones/pull/4021 +- Introducing Agones Guru on Gurubase.io by @kursataktas in https://github.com/googleforgames/agones/pull/4028 + +**New Contributors:** +- @john-haven made their first contribution in https://github.com/googleforgames/agones/pull/4008 +- @geopaulm made their first contribution in https://github.com/googleforgames/agones/pull/4016 +- @ouxingning made their first contribution in https://github.com/googleforgames/agones/pull/4023 +- @wheatear-dev made their first contribution in https://github.com/googleforgames/agones/pull/3940 +- @kursataktas made their first contribution in https://github.com/googleforgames/agones/pull/4028 + ## [v1.44.0](https://github.com/googleforgames/agones/tree/v1.44.0) (2024-10-08) [Full Changelog](https://github.com/googleforgames/agones/compare/v1.43.0...v1.44.0) @@ -12,6 +43,7 @@ - Adds clusters for the in place upgrades tests by @igooch in https://github.com/googleforgames/agones/pull/3990 - Test in place upgrades run tests by @igooch in https://github.com/googleforgames/agones/pull/3991 - Move Feature GKEAutopilotExtendedDurationPods To Beta by @kamaljeeti in https://github.com/googleforgames/agones/pull/4006 + **Fixed bugs:** - fix: remove bad character from metrics markdown by @code-eg in https://github.com/googleforgames/agones/pull/3981 - Updating UpdateList to update the values on a list by @chrisfoster121 in https://github.com/googleforgames/agones/pull/3899 @@ -19,6 +51,7 @@ - Refactor metrics registry exporter by @kamaljeeti in https://github.com/googleforgames/agones/pull/3989 - Fix the build-e2e error by @gongmax in https://github.com/googleforgames/agones/pull/4009 - Add a flag to sdkserver to avoid a collision on port 8080 by @KAllan357 in https://github.com/googleforgames/agones/pull/4010 + **Other:** - Update the note at the top of the player tracking docs by @roberthbailey in https://github.com/googleforgames/agones/pull/3974 - Adds schedule and chain policy to fleetautoscaler documentation by @indexjoseph in https://github.com/googleforgames/agones/pull/3934 diff --git a/build/Makefile b/build/Makefile index 21ceec6279..ae091292cf 100644 --- a/build/Makefile +++ b/build/Makefile @@ -24,7 +24,7 @@ # # base version target. This is usually the next release. -base_version = 1.45.0 +base_version = 1.46.0 # # All of the following can be overwritten with environment variables diff --git a/build/build-image/Dockerfile b/build/build-image/Dockerfile index a931413cbf..c9a1f11cd4 100644 --- a/build/build-image/Dockerfile +++ b/build/build-image/Dockerfile @@ -50,10 +50,7 @@ RUN go install golang.org/x/tools/cmd/goimports@latest && \ go install golang.org/x/pkgsite/cmd/pkgsite@latest # the kubernetes version for the file -# -# When this is raised to 1.29: bump the code-generator version on line 66 to the v0.30 tag. -# When this is raised to >=1.30: delete line 66-67 and uncomment line 68 to stop pinning code-generator. -ENV KUBERNETES_VER 1.29.7 +ENV KUBERNETES_VER 1.30.4 # overwrite kubectl as we want a specific version RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VER}/bin/linux/amd64/kubectl && \ @@ -63,9 +60,7 @@ RUN echo "source <(kubectl completion bash)" >> /root/.bashrc # install the release branch of the code generator tools RUN mkdir -p /go/src/k8s.io && cd /go/src/k8s.io && \ - git clone -b v0.30.0 --depth=3 https://github.com/kubernetes/code-generator.git -# We are pinning code-generator for now - kube_codegen.sh has substantial improvements in later releases. -# git clone -b kubernetes-${KUBERNETES_VER} --depth=3 https://github.com/kubernetes/code-generator.git + git clone -b kubernetes-${KUBERNETES_VER} --depth=3 https://github.com/kubernetes/code-generator.git # install Helm package manager ENV HELM_VER 3.10.3 diff --git a/build/e2e-image/Dockerfile b/build/e2e-image/Dockerfile index 2f24b356e1..047382e41d 100644 --- a/build/e2e-image/Dockerfile +++ b/build/e2e-image/Dockerfile @@ -15,7 +15,7 @@ RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \ ENV PATH /usr/local/go/bin:/go/bin:$PATH # install kubectl without gcloud as we want the last version -ENV KUBECTL_VER 1.29.7 +ENV KUBECTL_VER 1.30.4 RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/linux/amd64/kubectl && \ chmod go+rx ./kubectl && \ mv ./kubectl /usr/local/bin/kubectl diff --git a/build/grafana/dashboard-gameservers.yaml b/build/grafana/dashboard-gameservers.yaml index b71f244fcd..94909a08d8 100644 --- a/build/grafana/dashboard-gameservers.yaml +++ b/build/grafana/dashboard-gameservers.yaml @@ -29,7 +29,10 @@ data: { "$$hashKey": "object:261", "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -40,73 +43,149 @@ data: }, "description": "", "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1604523181564, "links": [], "panels": [ { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 + "gridPos": { + "h": 6, + "w": 5, + "x": 0, + "y": 0 + }, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "targets": [ + { + "expr": "sum(agones_fleet_rollout_percent{name=~\"$fleet\", namespace=~\"$namespace\", type=\"current_replicas\"}) / sum(agones_fleet_rollout_percent{name=~\"$fleet\", namespace=~\"$namespace\", type=\"desired_replicas\"}) * 100", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{type}}", + "refId": "A" + } + ], + "options": { + "reduceOptions": { + "calcs": ["lastNotNull"], + "fields": "", + "values": true + }, + "orientation": "horizontal", + "textMode": "value", + "colorMode": "value", + "valueMappings": [] }, - "datasource": null, "fieldConfig": { "defaults": { + "color": { + "mode": "thresholds" + }, "custom": {}, - "displayName": "", - "mappings": [ - { - "from": "", - "id": 1, - "operator": "", - "text": "", - "to": "", - "type": 1, - "value": "" - } - ], - "thresholds": { - "mode": "absolute", + "thresholds": { + "mode": "percentage", "steps": [ { - "color": "green", + "color": "dark-red", "value": null }, { - "color": "red", - "value": 80 + "color": "dark-orange", + "value": 20 + }, + { + "color": "dark-green", + "value": 50 } ] }, + "unit": "percent", + "links": [] + }, + "overrides": [] + }, + "legend": { + "show": false + }, + "timeShift": null, + "nullPointMode": "null", + "options": { + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "tooltip": { + "shared": false, + "value_type": "individual" + }, + "type": "stat", + "title": "Fleet RollOut Percentage" + }, + { + "aliasColors": {}, + "breakPoint": "50%", + "cacheTimeout": null, + "combine": { + "label": "Others", + "threshold": 0 + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "decimals": 0, + "mappings": [], "unit": "short" }, "overrides": [] }, - "fontSize": "80%", - "format": "short", "gridPos": { "h": 6, - "w": 7, - "x": 0, + "w": 5, + "x": 5, "y": 0 }, "id": 4, - "interval": null, - "legend": { - "show": true, - "values": true + "options": { + "legend": { + "calcs": [], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "values": [ + "value" + ] + }, + "pieType": "pie", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } }, - "legendType": "Under graph", - "links": [], - "nullPointMode": "connected", - "pieType": "pie", - "strokeWidth": 1, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "sum(agones_gameservers_count{fleet_name=~\"$fleet\", namespace=~\"$namespace\"}) by (type)", "format": "time_series", "hide": false, @@ -117,65 +196,140 @@ data: "refId": "A" } ], - "timeFrom": null, - "timeShift": null, "title": "GameServers count per type", - "type": "grafana-piechart-panel", - "valueName": "current" + "type": "piechart" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 6, - "w": 17, - "x": 7, + "w": 14, + "x": 10, "y": 0 }, - "hiddenSeries": false, "id": 2, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "sum(rate(agones_gameservers_total{fleet_name=~\"$fleet\", namespace=~\"$namespace\"}[$interval])) by (type)", "format": "time_series", "interval": "", @@ -184,100 +338,140 @@ data: "refId": "A" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "GameServers rate per type", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] }, - "fill": 10, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 6 }, - "hiddenSeries": false, "id": 7, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "sum(agones_gameservers_count{fleet_name=~\"$fleet\", namespace=~\"$namespace\"}) by (type)", "format": "time_series", "interval": "", @@ -290,7 +484,7 @@ data: "timeFrom": null, "timeRegions": [], "timeShift": null, - "title": "GameServers count per type", + "title": "GameServer count overview", "tooltip": { "shared": true, "sort": 0, @@ -328,61 +522,156 @@ data: } }, { - "aliasColors": { - "allocated": "#511749", - "desired": "#ef843c", - "ready": "#3f6833", - "total": "#0a50a1" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "allocated" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#511749", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "desired" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#ef843c", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ready" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#3f6833", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "total" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#0a50a1", + "mode": "fixed" + } + } + ] + } + ] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 6 }, - "hiddenSeries": false, "id": 9, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "sum(agones_fleets_replicas_count{name=~\"$fleet\", namespace=~\"$namespace\"}) by (type)", "format": "time_series", "interval": "", @@ -391,98 +680,98 @@ data: "refId": "A" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Fleet Replicas Count", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, "overrides": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 11, "x": 0, "y": 13 }, - "hiddenSeries": false, "id": 12, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "histogram_quantile(1, sum(rate(agones_gameservers_node_count_bucket[1m])) by (le))", "format": "time_series", "intervalFactor": 1, @@ -490,6 +779,10 @@ data: "refId": "F" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "histogram_quantile(0.99, sum(rate(agones_gameservers_node_count_bucket[1m])) by (le))", "format": "time_series", "intervalFactor": 1, @@ -497,6 +790,10 @@ data: "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "histogram_quantile(0.90, sum(rate(agones_gameservers_node_count_bucket[1m])) by (le))", "format": "time_series", "intervalFactor": 1, @@ -504,6 +801,10 @@ data: "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "histogram_quantile(0.50, sum(rate(agones_gameservers_node_count_bucket[1m])) by (le))", "format": "time_series", "intervalFactor": 1, @@ -511,6 +812,10 @@ data: "refId": "C" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "histogram_quantile(0, sum(rate(agones_gameservers_node_count_bucket[1m])) by (le))", "format": "time_series", "intervalFactor": 1, @@ -518,6 +823,10 @@ data: "refId": "E" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "avg(delta(agones_gameservers_node_count_sum[1m]) / delta(agones_gameservers_node_count_count[1m]))", "format": "time_series", "interval": "", @@ -526,100 +835,100 @@ data: "refId": "D" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "GameServers per node", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:696", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:697", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "fieldConfig": { "defaults": { - "custom": {}, - "links": [] + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, "overrides": [] }, - "fill": 1, - "fillGradient": 0, "gridPos": { "h": 7, "w": 13, "x": 11, "y": 13 }, - "hiddenSeries": false, "id": 14, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "maxHeight": 600, + "mode": "multi", + "sort": "none" + } + }, "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "agones_nodes_count{empty=\"true\"}", "format": "time_series", "intervalFactor": 1, @@ -627,6 +936,10 @@ data: "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "expr": "agones_nodes_count{empty=\"false\"}", "format": "time_series", "intervalFactor": 1, @@ -634,51 +947,115 @@ data: "refId": "B" } ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, "title": "Node availability (stacked)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": true, + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 1, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 20 + }, + "id": 15, + "options": { + "legend": { + "calcs": [ + "lastNotNull", + "min", + "max", + "mean" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true }, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + } + }, + "targets": [ { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "sum (rate(agones_gameserver_state_duration_sum[5m]) / rate(agones_gameserver_state_duration_count[5m])) by(__name__,type)", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" } ], - "yaxis": { - "align": false, - "alignLevel": null - } + "title": "Average GameServer State duration", + "type": "timeseries" } ], "refresh": "5s", - "schemaVersion": 26, - "style": "dark", + "schemaVersion": 39, "tags": [ "agones", "state", @@ -697,11 +1074,13 @@ data: "$__all" ] }, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "definition": "label_values(agones_gameservers_count, fleet_name)", "hide": 0, "includeAll": true, - "label": null, "multi": true, "name": "fleet", "options": [], @@ -711,7 +1090,6 @@ data: "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -726,7 +1104,6 @@ data: "value": "$__auto_interval_interval" }, "hide": 0, - "label": null, "name": "interval", "options": [ { @@ -791,7 +1168,6 @@ data: "type": "interval" }, { - "allValue": null, "current": { "selected": true, "text": [ @@ -801,11 +1177,13 @@ data: "$__all" ] }, - "datasource": "Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, "definition": "label_values(agones_gameservers_count, namespace)", "hide": 0, "includeAll": true, - "label": null, "multi": true, "name": "namespace", "options": [], @@ -815,7 +1193,6 @@ data: "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -823,9 +1200,10 @@ data: ] }, "time": { - "from": "now-15m", + "from": "now-24h", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -854,5 +1232,6 @@ data: "timezone": "", "title": "Agones GameServers", "uid": "D78OotUmk", - "version": 1 + "version": 1, + "weekStart": "" } diff --git a/build/includes/examples.mk b/build/includes/examples.mk index cd0fedf7f0..216add8ef6 100644 --- a/build/includes/examples.mk +++ b/build/includes/examples.mk @@ -100,3 +100,8 @@ build-example-xonotic: build-example-custom-controller: $(MAKE) build-example EXAMPLE=custom-controller + +# ensure a version increase when an example changes +check-example-versions: ensure-build-image + docker run --rm $(common_mounts) --workdir=$(mount_path)/build/scripts/example-version-checker $(DOCKER_RUN_ARGS) $(build_tag) \ + go run . diff --git a/build/includes/kind.mk b/build/includes/kind.mk index bda008325d..92c27ab9cd 100644 --- a/build/includes/kind.mk +++ b/build/includes/kind.mk @@ -26,7 +26,7 @@ kind-test-cluster: DOCKER_RUN_ARGS+=--network=host kind-test-cluster: $(ensure-build-image) @if [ -z $$(kind get clusters | grep $(KIND_PROFILE)) ]; then\ echo "Could not find $(KIND_PROFILE) cluster. Creating...";\ - kind create cluster --name $(KIND_PROFILE) --image kindest/node:v1.29.7 --wait 5m;\ + kind create cluster --name $(KIND_PROFILE) --image kindest/node:v1.30.4 --wait 5m;\ fi # deletes the kind agones cluster diff --git a/build/includes/minikube.mk b/build/includes/minikube.mk index 8e242698a0..a23f5e5469 100644 --- a/build/includes/minikube.mk +++ b/build/includes/minikube.mk @@ -28,7 +28,7 @@ minikube_cert_mount := ~/.minikube:$(HOME)/.minikube # of the right version. minikube-test-cluster: DOCKER_RUN_ARGS+=--network=host -v $(minikube_cert_mount) minikube-test-cluster: $(ensure-build-image) - $(MINIKUBE) start --kubernetes-version v1.29.7 -p $(MINIKUBE_PROFILE) --driver $(MINIKUBE_DRIVER) + $(MINIKUBE) start --kubernetes-version v1.30.4 -p $(MINIKUBE_PROFILE) --driver $(MINIKUBE_DRIVER) # Connecting to minikube requires so enhanced permissions, so use this target # instead of `make shell` to start an interactive shell for development on minikube. diff --git a/build/includes/sdk.mk b/build/includes/sdk.mk index b1b4c6a12e..b6a9d1e61d 100644 --- a/build/includes/sdk.mk +++ b/build/includes/sdk.mk @@ -20,7 +20,7 @@ # \__, |_| \_\_| \____| |_|\___/ \___/|_|_|_| |_|\__, | # |___/ |___/ -grpc_release_tag = v1.58.3 +grpc_release_tag = v1.65.0 build_sdk_base_version = $(call sha,$(build_path)/build-sdk-images/tool/base/Dockerfile)_$(grpc_release_tag) build_sdk_base_tag = agones-build-sdk-base:$(build_sdk_base_version) diff --git a/build/scripts/example-version-checker/git.go b/build/scripts/example-version-checker/git.go new file mode 100644 index 0000000000..a73375646f --- /dev/null +++ b/build/scripts/example-version-checker/git.go @@ -0,0 +1,187 @@ +package main + +import ( + "fmt" + "io" + "log" + "os" + + "github.com/go-git/go-git/v5" + "github.com/go-git/go-git/v5/plumbing" + "github.com/go-git/go-git/v5/plumbing/object" +) + +const cloneDir = "tmp" +const rootDir = "../../../" +const gitUrl = "https://github.com/googleforgames/agones.git" +const targetBranch = "refs/heads/main" + +func getFailedFiles() []string { + local, remote := getCommits() + changed := getChangedFilenames(local, remote) + sameVersionNames := getSameVersionExampleNames(local, remote) + + return filterFailedFiles(changed, sameVersionNames) +} + +func filterFailedFiles(filePaths []string, sameVersionNames []string) []string { + failed := make([]string, 0) + + for _, filePath := range filePaths { + if filenameInExamples(filePath, sameVersionNames) { + failed = append(failed, filePath) + } + } + + return failed +} + +func getChangedFilenames(local *object.Commit, remote *object.Commit) []string { + changes := getChanges(local, remote) + exampleNames := getAllExampleNames() + + filenames := make([]string, 0) + for _, change := range changes { + filename := change.To.Name + if !filenameIsIrrelevant(filename, exampleNames) { + filenames = append(filenames, filename) + } + } + + return filenames +} + +func getLocalRepo() *git.Repository { + repo, err := git.PlainOpen(rootDir) + if err != nil { + log.Fatalf("Failed to open local git repository: %v", err) + } + + return repo +} + +func getHeadCommit(repo *git.Repository) *object.Commit { + ref, err := repo.Reference(plumbing.HEAD, true) + if err != nil { + log.Fatalf("Failed to get HEAD reference: %v", err) + } + + commit, err := repo.CommitObject(ref.Hash()) + if err != nil { + log.Fatalf("Failed to get HEAD commit object: %v", err) + } + + return commit +} + +func getCommits() (*object.Commit, *object.Commit) { + localRepo := getLocalRepo() + localCommit := getHeadCommit(localRepo) + + remoteRepo := cloneRemoteRepo() + remoteCommit := getHeadCommit(remoteRepo) + + return localCommit, remoteCommit +} + +func getChanges(local *object.Commit, remote *object.Commit) object.Changes { + localTree := getCommitTree(local) + remoteTree := getCommitTree(remote) + + changes, err := object.DiffTree(localTree, remoteTree) + if err != nil { + log.Fatalf("Failed to diff trees: %v", err) + } + + return changes +} + +func getCommitTree(commit *object.Commit) *object.Tree { + tree, err := commit.Tree() + if err != nil { + log.Fatalf("Failed to get tree: %v", err) + } + + return tree +} + +func exampleVersionChanged(exampleName string, local *object.Commit, remote *object.Commit) bool { + log.Printf("Getting versions of %s", exampleName) + + localVersion, errLocal := getVersionFromCommit(exampleName, local) + if errLocal != nil { + log.Fatalf("Could not get (local) version of example %s: %v", exampleName, errLocal) + } + log.Printf("\tLocal:\t\t%s", localVersion) + + remoteVersion, errRemote := getVersionFromCommit(exampleName, remote) + if errRemote != nil { + return true + } + log.Printf("\tUpstream:\t%s", remoteVersion) + + return localVersion != remoteVersion +} + +func getVersionFromCommit(exampleName string, commit *object.Commit) (string, error) { + filePath := fmt.Sprintf("%s/%s/Makefile", examplesDir, exampleName) + + contents, err := getFileContents(commit, filePath) + if err != nil { + return "", err + } + + return getVersionFromMakefile(contents) +} + +func getFileContents(commit *object.Commit, filePath string) (string, error) { + tree := getCommitTree(commit) + + return getFileContentsFromTree(tree, filePath) +} + +func getFileContentsFromTree(tree *object.Tree, filePath string) (string, error) { + file, err := tree.File(filePath) + if err != nil { + return "", err + } + + reader, err := file.Reader() + if err != nil { + return "", err + } + defer reader.Close() + + content, err := io.ReadAll(reader) + if err != nil { + return "", err + } + + return string(content), nil +} + +func cloneRemoteRepo() *git.Repository { + os.RemoveAll(cloneDir) + cloneOptions := &git.CloneOptions{ + URL: gitUrl, + ReferenceName: targetBranch, + } + repo, err := git.PlainClone(cloneDir, false, cloneOptions) + if err != nil { + log.Fatalf("Failed to clone the upstream git repository: %v", err) + } + return repo +} + +func getSameVersionExampleNames(local *object.Commit, remote *object.Commit) []string { + exampleNames := getAllExampleNames() + + sameVersionNames := make([]string, 0) + for _, exampleName := range exampleNames { + if !exampleVersionChanged(exampleName, local, remote) { + sameVersionNames = append(sameVersionNames, exampleName) + } + } + + return sameVersionNames +} diff --git a/build/scripts/example-version-checker/go.mod b/build/scripts/example-version-checker/go.mod new file mode 100644 index 0000000000..43a5b6c254 --- /dev/null +++ b/build/scripts/example-version-checker/go.mod @@ -0,0 +1,29 @@ +module github.com/agones/agones/build/scripts/example-version-checker + +go 1.21 + +require github.com/go-git/go-git/v5 v5.12.0 + +require ( + dario.cat/mergo v1.0.0 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/ProtonMail/go-crypto v1.0.0 // indirect + github.com/cloudflare/circl v1.3.7 // indirect + github.com/cyphar/filepath-securejoin v0.2.4 // indirect + github.com/emirpasic/gods v1.18.1 // indirect + github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect + github.com/go-git/go-billy/v5 v5.5.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect + github.com/skeema/knownhosts v1.2.2 // indirect + github.com/xanzy/ssh-agent v0.3.3 // indirect + golang.org/x/crypto v0.21.0 // indirect + golang.org/x/mod v0.12.0 // indirect + golang.org/x/net v0.22.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/tools v0.13.0 // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect +) diff --git a/build/scripts/example-version-checker/go.sum b/build/scripts/example-version-checker/go.sum new file mode 100644 index 0000000000..d7b845300d --- /dev/null +++ b/build/scripts/example-version-checker/go.sum @@ -0,0 +1,145 @@ +dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= +dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= +github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= +github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= +github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= +github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= +github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= +github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= +github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= +github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= +github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +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/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a h1:mATvB/9r/3gvcejNsXKSkQ6lcIaNec2nyfOdlTBR2lU= +github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= +github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= +github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= +github.com/gliderlabs/ssh v0.3.7 h1:iV3Bqi942d9huXnzEF2Mt+CY9gLu8DNM4Obd+8bODRE= +github.com/gliderlabs/ssh v0.3.7/go.mod h1:zpHEXBstFnQYtGnB8k8kQLol82umzn/2/snG7alWVD8= +github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= +github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376/go.mod h1:an3vInlBmSxCcxctByoQdvwPiA7DTK7jaaFDBTtu0ic= +github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= +github.com/go-git/go-billy/v5 v5.5.0/go.mod h1:hmexnoNsr2SJU1Ju67OaNz5ASJY3+sHgFRpCtpDCKow= +github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399 h1:eMje31YglSBqCdIqdhKBW8lokaMrL3uTkpGYlE2OOT4= +github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20231010084843-55a94097c399/go.mod h1:1OCfN199q1Jm3HZlxleg+Dw/mwps2Wbk9frAWm+4FII= +github.com/go-git/go-git/v5 v5.12.0 h1:7Md+ndsjrzZxbddRDZjF14qK+NN56sy6wkqaVrjZtys= +github.com/go-git/go-git/v5 v5.12.0/go.mod h1:FTM9VKtnI2m65hNI/TenDDDnUf2Q9FHnXYjuz9i5OEY= +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/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= +github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= +github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= +github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +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/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= +github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= +github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +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/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8= +github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A= +github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= +github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +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-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +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.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= +golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/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-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/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-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.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +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.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/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.4.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.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/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/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/build/scripts/example-version-checker/main.go b/build/scripts/example-version-checker/main.go new file mode 100644 index 0000000000..4a4e871560 --- /dev/null +++ b/build/scripts/example-version-checker/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "log" +) + +func main() { + log.Println("Checking that modified examples have new versions.") + log.Println() + + failed := getFailedFiles() + + logReport(failed) +} diff --git a/build/scripts/example-version-checker/report.go b/build/scripts/example-version-checker/report.go new file mode 100644 index 0000000000..044b4d253e --- /dev/null +++ b/build/scripts/example-version-checker/report.go @@ -0,0 +1,69 @@ +package main + +import ( + "fmt" + "log" + "strings" +) + +func logReport(failedFileNames []string) { + if len(failedFileNames) != 0 { + grouped := groupByExampleName(failedFileNames) + reportFailedFiles(grouped) + } + + log.Println() + log.Println("The check for version changes succeeded.") +} + +func reportFailedFiles(groupedPaths map[string][]string) { + log.Println() + log.Println("The below examples were modified, without increasing the version in its Makefile.") + log.Println() + log.Println("examples/") + + for exampleName, filePaths := range groupedPaths { + log.Printf("\t%s/\n", exampleName) + for _, filePath := range filePaths { + log.Printf("\t\t%s\n", filePath) + } + } + + log.Println() + log.Fatal("The check for version changes failed. Please increase the above versions.") +} + +func groupByExampleName(filePaths []string) map[string][]string { + grouped := make(map[string][]string, 0) + + for _, filePath := range filePaths { + grouped = appendToGroup(grouped, filePath) + } + + return grouped +} + +func splitPath(filePath string) (string, string) { + trimmed, _ := strings.CutPrefix(filePath, fmt.Sprintf("%s/", examplesDir)) + split := strings.SplitN(trimmed, "/", 2) + + exampleName := split[0] + relative := split[1] + + return exampleName, relative +} + +func appendToGroup(grouped map[string][]string, filePath string) map[string][]string { + exampleName, relative := splitPath(filePath) + + val, ok := grouped[exampleName] + if ok { + val = append(val, relative) + } else { + val = []string{relative} + } + + grouped[exampleName] = val + + return grouped +} diff --git a/build/scripts/example-version-checker/version.go b/build/scripts/example-version-checker/version.go new file mode 100644 index 0000000000..9e2e26610c --- /dev/null +++ b/build/scripts/example-version-checker/version.go @@ -0,0 +1,106 @@ +package main + +import ( + "bufio" + "errors" + "fmt" + "log" + "os" + "path/filepath" + "strings" +) + +const examplesDir = "examples" + +var excludedPatterns = [...]string{"*.md", "*.yaml", "*.yml", "OWNERS", ".gitignore"} + +func dirIsExample(dirName string) bool { + makefileName := fmt.Sprintf("%s/Makefile", dirName) + if _, err := os.Stat(makefileName); err == nil { + return true + } else { + return false + } +} + +func getAllExampleNames() []string { + dirNames := make([]string, 0) + + baseDir := fmt.Sprintf("%s%s", rootDir, examplesDir) + + entries, err := os.ReadDir(baseDir) + if err != nil { + log.Fatalf("Could not open directory: %v", err) + } + + for _, entry := range entries { + name := entry.Name() + path := fmt.Sprintf("%s/%s", baseDir, entry.Name()) + if dirIsExample(path) { + dirNames = append(dirNames, name) + } + } + return dirNames +} + +func getVersionFromMakefile(contents string) (string, error) { + scanner := bufio.NewScanner(strings.NewReader(contents)) + for scanner.Scan() { + line := scanner.Text() + if lineContainsVersion(line) { + return getVersionFromLine(line), nil + } + } + + if err := scanner.Err(); err != nil { + log.Fatalf("Could not get version: %v", err) + } + + return "", errors.New("no version could be found") +} + +func lineContainsVersion(line string) bool { + return strings.HasPrefix(line, "version :=") +} + +func getVersionFromLine(line string) string { + split := strings.SplitN(line, ":=", 2) + if len(split) != 2 { + log.Fatalf("Bad version line: %s", line) + } + trimmed := strings.TrimSpace(split[1]) + if trimmed == "" { + log.Fatalf("Version can not be empty: %s", line) + } + return trimmed +} + +func filenameIsIrrelevant(filename string, exampleNames []string) bool { + if !filenameInExamples(filename, exampleNames) { + return true + } + + _, splitname := filepath.Split(filename) + + for _, excludedName := range excludedPatterns { + matches, err := filepath.Match(excludedName, splitname) + if err != nil { + log.Fatalf("Unknown error: %s", err) + } + + if matches { + return true + } + } + return false +} + +func filenameInExamples(filename string, exampleNames []string) bool { + for _, exampleName := range exampleNames { + path := fmt.Sprintf("%s/%s", examplesDir, exampleName) + if strings.HasPrefix(filename, path) { + return true + } + } + return false +} diff --git a/build/scripts/example-version-checker/version_test.go b/build/scripts/example-version-checker/version_test.go new file mode 100644 index 0000000000..158ce2f8c4 --- /dev/null +++ b/build/scripts/example-version-checker/version_test.go @@ -0,0 +1,31 @@ +package main + +import ( + "log" + "testing" +) + +func TestFilenameIsIrrelevant(t *testing.T) { + exampleNames := []string{"inner", "first"} + + irrelevantMap := map[string]bool{ + // in deny-list + "README.md": true, + "cloudbuild.yaml": true, + // in deny-list and inside an example + "examples/inner/outer/EXAMPLE.md": true, + "examples/first/second/third/test.yml": true, + // not in deny list, but outside examples + "outside/test.txt": true, + "1/2/3/4/5.go": true, + // in examples and relevant + "examples/inner/main.go": false, + } + + for filename, expected := range irrelevantMap { + observed := filenameIsIrrelevant(filename, exampleNames) + if observed != expected { + log.Fatalf("%s was expected to be: %t", filename, expected) + } + } +} diff --git a/build/terraform/e2e/module.tf b/build/terraform/e2e/module.tf index c6ce8f4758..b497aa4953 100644 --- a/build/terraform/e2e/module.tf +++ b/build/terraform/e2e/module.tf @@ -38,10 +38,10 @@ variable "kubernetes_versions" { description = "Create e2e test clusters with these k8s versions in these regions" type = map(list(string)) default = { - "1.28" = ["us-west1", "RAPID"] "1.29" = ["europe-west1", "RAPID"] "1.30" = ["asia-east1", "RAPID"] - // "1.31" = ["us-east1", "RAPID"] + "1.31" = ["us-east1", "RAPID"] + //1.32" = ["us-west1", "RAPID"] // // Before merge: When adding Kubernetes version 1.{N}, first uncomment the line above, extending // the infrastructure to 4 versions temporarily. Come back to these instructions after the diff --git a/build/terraform/performance/module.tf b/build/terraform/performance/module.tf index 1d3ed153ba..c38a944d42 100644 --- a/build/terraform/performance/module.tf +++ b/build/terraform/performance/module.tf @@ -41,7 +41,7 @@ variable "kubernetes_versions" { description = "Create performance test clusters with these k8s versions in these regions" type = map(list(string)) default = { - "1.29" = ["us-central1", "RAPID"] + "1.30" = ["us-central1", "RAPID"] } } diff --git a/build/terraform/upgrade/module.tf b/build/terraform/upgrade/module.tf index 6fb0bc4232..6ddb053684 100644 --- a/build/terraform/upgrade/module.tf +++ b/build/terraform/upgrade/module.tf @@ -38,14 +38,13 @@ variable "kubernetes_versions" { description = "Create upgrade test clusters with these k8s versions in these regions" type = map(list(string)) default = { - "1.28" = ["us-west1", "RAPID"] - "1.29" = ["europe-west1", "RAPID"] - "1.30" = ["asia-east1", "RAPID"] - // "1.31" = ["us-east1", "RAPID"] + "1.29" = ["us-west1", "RAPID"] + "1.30" = ["us-central1", "RAPID"] + "1.31" = ["us-east1", "RAPID"] + //1.32" = ["us-west1", "RAPID"] // - // Before merge: When adding Kubernetes version 1.{N}, first uncomment the line above, extending - // the infrastructure to 4 versions temporarily. Come back to these instructions after the - // update PR merges. + // Before merge: When adding Kubernetes version 1.{N}, first uncomment the line above. Come back + // to these instructions after the update PR merges. // // After merge: After the Kubernetes update PR merges, and all active PRs are updated: // @@ -53,12 +52,11 @@ variable "kubernetes_versions" { // * Change the (commented out) 1.{N-3} to 1.{N+1} // * You should now have 3 versions uncommented (versions 1.{N-2} .. 1.{N}), // and 1.{N+1} commented out for the next update. The new, commented out 1.{N+1} - // should be using the region of the previous 1.{N-3} - this region will become - // unused. + // should be using the region of the current 1.{N-3}. // - // Rationale: We cycle the regions us-east1 -> us-west1 -> europe-west1 -> asia-east1 -> us-east1 - // as versions are added, using 4 regions so that the PR adding 1.{N} is in a unique region to - // 1.{N-3} .. 1.{N-1}, meaning versions never need to share a region in CI. + // Rationale: We cycle the regions us-east1 -> us-west1 -> us-central1 -> us-east1 as versions + // are added, using 3 regions so that the PR adding 1.{N} is in a unique region to + // 1.{N-2} .. 1.{N-1}, meaning versions never need to share a region in CI. } } @@ -80,30 +78,32 @@ module "gke_autopilot_cluster" { releaseChannel = each.value[1] } -resource "google_compute_firewall" "udp" { - name = "gke-game-server-firewall" - project = var.project - network = "default" - - allow { - protocol = "udp" - ports = ["7000-8000"] - } - - target_tags = ["game-server"] - source_ranges = ["0.0.0.0/0"] -} - -resource "google_compute_firewall" "tcp" { - name = "gke-game-server-firewall-tcp" - project = var.project - network = "default" - - allow { - protocol = "tcp" - ports = ["7000-8000"] - } - - target_tags = ["game-server"] - source_ranges = ["0.0.0.0/0"] -} +// NOTE: These are the same firewall rules as the e2e tests. If running only the upgrade clusters on +// a new project the clusters will need these rules. +// resource "google_compute_firewall" "udp" { +// name = "gke-game-server-firewall" +// project = var.project +// network = "default" +// +// allow { +// protocol = "udp" +// ports = ["7000-8000"] +// } +// +// target_tags = ["game-server"] +// source_ranges = ["0.0.0.0/0"] +//} +// +// resource "google_compute_firewall" "tcp" { +// name = "gke-game-server-firewall-tcp" +// project = var.project +// network = "default" +// +// allow { +// protocol = "tcp" +// ports = ["7000-8000"] +// } +// +// target_tags = ["game-server"] +// source_ranges = ["0.0.0.0/0"] +//} diff --git a/ci/perf-test-cloudbuild.yaml b/ci/perf-test-cloudbuild.yaml index 647f22f3d8..82bec41116 100644 --- a/ci/perf-test-cloudbuild.yaml +++ b/ci/perf-test-cloudbuild.yaml @@ -97,7 +97,7 @@ steps: - tag-build-image substitutions: - _TEST_CLUSTER_NAME: standard-performance-test-cluster-1-29 + _TEST_CLUSTER_NAME: standard-performance-test-cluster-1-30 _TEST_CLUSTER_LOCATION: us-central1 _REGISTRY: us-docker.pkg.dev/agones-images/ci _TEST_PROJECT_ID: agones-images diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 34707e023b..f1abb617ca 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -175,6 +175,16 @@ steps: dir: build args: [-j, '4', --output-sync=recurse, build-sdks] + # + # Example version checks + # + - name: make-docker + id: check-example-versions + dir: build + args: [check-example-versions] + waitFor: + - push-images + # # Run the all the automated tests (except e2e) in parallel # @@ -223,9 +233,18 @@ steps: # End to end tests # - # wait for us to be the oldest ongoing build before we run e2es - - name: gcr.io/cloud-builders/gcloud - id: e2e-wait-to-become-leader + # Build and Push upgrade test + - name: make-docker + id: push-upgrade-test + dir: test/upgrade + env: ['REGISTRY=${_REGISTRY}'] + args: [push] + waitFor: + - push-images + + # Wait for us to be the oldest ongoing build before we run upgrade and e2e tests + - name: gcr.io/google.com/cloudsdktool/cloud-sdk + id: wait-to-become-leader waitFor: [push-images] script: | #!/usr/bin/env bash @@ -248,10 +267,157 @@ steps: - BUILD_ID=$BUILD_ID - TRIGGER_NAME=$TRIGGER_NAME + # Run the upgrade tests parallel, fail this step if any of the tests fail + - name: gcr.io/google.com/cloudsdktool/cloud-sdk + id: submit-upgrade-test-cloud-build + dir: test/upgrade + entrypoint: bash + args: + - -c + - | + #!/usr/bin/env bash + set -e + set -o pipefail + export KUBECONFIG="/root/.kube/config" + mkdir -p /go/src/agones.dev/ /root/.kube/ + ln -s /workspace /go/src/agones.dev/agones + cd /go/src/agones.dev/agones/test/upgrade + + pids=() + typeset -A waitPids # Associative array for mapping `kubectl wait job` pid -> `kubectl wait job` output log name + tmpdir=$(mktemp -d) + trap 'rm -rf -- "$tmpdir"' EXIT SIGTERM + + # Update image tags to include the current build version. + DevVersion="${_BASE_VERSION}-dev-$(git rev-parse --short=7 HEAD)" + export DevVersion + sed "s/\${DevVersion}/${DevVersion}/" upgradeTest.yaml > "${tmpdir}"/upgradeTest.yaml + sed "s/\${DevVersion}/${DevVersion}/" versionMap.yaml > "${tmpdir}"/versionMap.yaml + + # Kill all currently running child processes on exit or if a non-zero signal is seen + trap 'echo Cleaning up any remaining running pids: $(jobs -p) ; kill $(jobs -p) 2> /dev/null || :' EXIT SIGTERM + + cloudProducts=("generic" "gke-autopilot") + declare -A versionsAndRegions=( [1.31]=us-east1 [1.30]=us-central1 [1.29]=us-west1 ) + + for cloudProduct in "${cloudProducts[@]}" + do + for version in "${!versionsAndRegions[@]}" + do + region=${versionsAndRegions[$version]} + if [ "$cloudProduct" = generic ] + then + testCluster="standard-upgrade-test-cluster-${version//./-}" + else + testCluster="gke-autopilot-upgrade-test-cluster-${version//./-}" + fi + testClusterLocation="${region}" + + gcloud container clusters get-credentials "$testCluster" --region="$testClusterLocation" --project="$PROJECT_ID" + + if [ "$cloudProduct" = gke-autopilot ] ; then + # For autopilot clusters use evictable "balloon" pods to keep a buffer in node pool autoscaling. + kubectl apply -f evictablePods.yaml + fi + + # Clean up any existing job / namespace / apiservice from previous run + echo Checking if resources from a previous build of upgrade-test-runner exist and need to be cleaned up on cluster "${testCluster}". + if kubectl get jobs | grep upgrade-test-runner ; then + echo Deleting job from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl delete job upgrade-test-runner + kubectl wait --for=delete pod -l job-name=upgrade-test-runner --timeout=5m + fi + + # Check if there are any dangling game servers. + if kubectl get gs | grep ".*"; then + # Remove any finalizers so that dangling game servers can be manually deleted. + kubectl get gs -o=custom-columns=:.metadata.name --no-headers | xargs kubectl patch gs -p '{"metadata":{"finalizers":[]}}' --type=merge + sleep 5 + echo Deleting game servers from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl delete gs -l app=sdk-client-test + fi + + if kubectl get po -l app=sdk-client-test | grep ".*"; then + echo Deleting pods from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl delete po -l app=sdk-client-test + kubectl wait --for=delete pod -l app=sdk-client-test --timeout=5m + fi + + # The v1.allocation.agones.dev apiservice does not get removed automatically and will prevent the namespace from terminating. + if kubectl get apiservice | grep v1.allocation.agones.dev ; then + echo Deleting v1.allocation.agones.dev from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl delete apiservice v1.allocation.agones.dev + fi + + if kubectl get namespace | grep agones-system ; then + echo Deleting agones-system namespace from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl delete namespace agones-system + kubectl wait --for=delete ns agones-system --timeout=5m + fi + + if kubectl get crds | grep agones ; then + echo Deleting crds from previous run of upgrade-test-runner on cluster "${testCluster}". + kubectl get crds -o=custom-columns=:.metadata.name | grep agones | xargs kubectl delete crd + fi + + echo kubectl apply -f permissions.yaml on cluster "${testCluster}" + kubectl apply -f permissions.yaml + echo kubectl apply -f versionMap.yaml on cluster "${testCluster}" + kubectl apply -f "${tmpdir}"/versionMap.yaml + echo kubectl apply -f gameserverTemplate.yaml on cluster "${testCluster}" + kubectl apply -f gameserverTemplate.yaml + + echo kubectl apply -f upgradeTest.yaml on cluster "${testCluster}" + kubectl apply -f "${tmpdir}"/upgradeTest.yaml + + # We need to wait for job pod to be created and ready before we can wait on the job itself. + # TODO: Once all test clusters are at Kubernetes Version >= 1.31 use `kubectl wait --for=create` instead of sleep. + # kubectl wait --for=create pod -l job-name=upgrade-test-runner --timeout=1m + sleep 10s + kubectl wait --for=condition=ready pod -l job-name=upgrade-test-runner --timeout=5m + + echo Wait for job upgrade-test-runner to complete or fail on cluster "${testCluster}" + kubectl wait job/upgrade-test-runner --timeout=20m --for jsonpath='{.status.conditions[*].status}'=True -o jsonpath='{.status.conditions[*].type}' | tee "${tmpdir}"/"${testCluster}".log & + waitPid=$! + pids+=( "$waitPid" ) + waitPids[$waitPid]="${tmpdir}"/"${testCluster}".log + done + done + + for pid in "${pids[@]}"; do + # This block executes when the process exits and pid status==0 + if wait $pid; then + outputLog="${waitPids[$pid]}" + # wait for output to finish writing to file + until [ -s "$outputLog" ]; do sleep 1; done + output=$(<"${outputLog}") + echo "${outputLog}": "${output}" + + # "Complete" is successful job run. + # Version 1.31 has "SuccessCriteriaMet" as the first completion status returned, or "FailureTarget" in case of failure. + if [ "$output" == "Complete" ] || [ "$output" == "SuccessCriteriaMet" ] ; then + continue + else + exit 1 + fi + # This block executes when the process exits and pid status!=0 + else + status=$? + outputLog="${waitPids[$pid]}" + echo "One of the upgrade tests pid $pid from cluster log $outputLog exited with a non-zero status ${status}." + exit $status + fi + done + echo "End of Upgrade Tests" + + waitFor: + - wait-to-become-leader + - push-upgrade-test + # cancel all the orphan e2e test cloud builds, fail to cancel any of the build will fail this whole build - name: gcr.io/cloud-builders/gcloud id: cancel-orphan-e2e-tests - waitFor: [e2e-wait-to-become-leader] + waitFor: [wait-to-become-leader] script: | #!/usr/bin/env bash until gcloud builds list --ongoing --filter "tags:'e2e-test'" --format="value(id)" | xargs --no-run-if-empty gcloud builds cancel @@ -271,14 +437,14 @@ steps: set -o pipefail pids=() cloudProducts=("generic" "gke-autopilot") - declare -A versionsAndRegions=( [1.28]=us-west1 [1.29]=europe-west1 [1.30]=asia-east1 ) + declare -A versionsAndRegions=( [1.29]=europe-west1 [1.30]=asia-east1 [1.31]=us-east1 ) # Keep in sync with (the inverse of) pkg/util/runtime/features.go:featureDefaults featureWithGate="PlayerAllocationFilter=true&FleetAutoscaleRequestMetaData=true&PlayerTracking=true&CountsAndLists=false&RollingUpdateFix=true&PortRanges=true&PortPolicyNone=true&ScheduledAutoscaler=true&DisableResyncOnSDKServer=false&AutopilotPassthroughPort=false&GKEAutopilotExtendedDurationPods=false&Example=true" featureWithoutGate="" # Use this if specific feature gates can only be supported on specific Kubernetes versions. - declare -A featureWithGateByVersion=( [1.28]="${featureWithGate}" [1.29]="${featureWithGate}" [1.30]="${featureWithGate}") + declare -A featureWithGateByVersion=( [1.29]="${featureWithGate}" [1.30]="${featureWithGate}" [1.31]="${featureWithGate}") for cloudProduct in ${cloudProducts[@]} do @@ -376,7 +542,7 @@ steps: # - name: gcr.io/cloud-builders/gcloud id: cleanup-services - waitFor: [e2e-wait-to-become-leader] + waitFor: [wait-to-become-leader] allowFailure: true entrypoint: bash args: @@ -390,6 +556,7 @@ steps: done substitutions: + _BASE_VERSION: 1.46.0 _CACHE_BUCKET: agones-build-cache _HTMLTEST_CACHE_KEY: htmltest-0.10.1 _CPP_SDK_BUILD_CACHE_KEY: cpp-sdk-build @@ -397,7 +564,7 @@ substitutions: _RUST_SDK_BUILD_CACHE_KEY: rust-sdk-build _REGISTRY: us-docker.pkg.dev/${PROJECT_ID}/ci tags: [ci, 'commit-${COMMIT_SHA}'] -timeout: 18000s # 5h: 3h (e2e-wait-to-become-leader) + 1.5h (e2e timeout) + 0.5h (everything else) +timeout: 18000s # 5h: 3h (wait-to-become-leader) + 1.5h (e2e timeout) + 0.5h (everything else) queueTtl: 259200s # 72h images: - ${_REGISTRY}/agones-controller diff --git a/docs/governance/templates/release_issue.md b/docs/governance/templates/release_issue.md index 1c8aeacdb6..bb96d9f816 100644 --- a/docs/governance/templates/release_issue.md +++ b/docs/governance/templates/release_issue.md @@ -40,6 +40,8 @@ and copy it into a release issue. Fill in relevant values, found inside {} - [ ] config.toml updates: - [ ] Run `make site-config-update-version` to update the release version and sync data between dev and prod. - [ ] Update documentation with updated example images tags. +- [ ] Ensure that the `alphaGates` and `betaGates` for `"Dev"` in `test/upgrade/versionMap.yaml` + match the Alpha features and Beta features in `pkg/util/runtime/features.go`. - [ ] Create PR with these changes, and merge them with an approval. - [ ] Run `git remote update && git checkout main && git reset --hard upstream/main` to ensure your code is in line with upstream (unless this is a hotfix, then do the same, but for the release branch) @@ -51,17 +53,24 @@ and copy it into a release issue. Fill in relevant values, found inside {} - [ ] Run `make post-build-release` to build the artifacts in GCS(These files will be attached in the release notes) and to push the latest images in the release repository and push chart on agones-chart. - [ ] Run `make shell` and run `gcloud config configurations activate ` to switch Agones development tooling off of the `agones-images` project. -- [ ] Smoke Test: run `make install-release` to view helm releases, uninstall agones-system namesapce, fetch the latest version of Agones, verify the new version, installing agones-system namespace, and list all the pods of agones-system. +- [ ] Smoke Test: run `make install-release` to view helm releases, uninstall agones-system namespace, fetch the latest version of Agones, verify the new version, installing agones-system namespace, and list all the pods of agones-system. - [ ] Attach all assets found in the cloud storage with {version} to the draft GitHub Release. - [ ] Copy any review changes from the release blog post into the draft GitHub release. - [ ] Publish the draft GitHub Release. - [ ] Run `make release-branch` to create a release branch and run `gcloud config configurations activate ` to switch Agones development tooling off of the `agones-images` project. -- [ ] Email mailing lists with the release details (copy-paste the release blog post). Refer to the [Internal Mailing list posting guide][Internal Mailing list posting guide] for details. +- [ ] Email mailing lists with the release details (copy-paste the release blog post). Refer to the [Internal Mailing list posting guide][Internal Mailing list posting guide] for details. - [ ] Paste the announcement blog post to the #users Slack group. - [ ] Post to the [agonesdev](https://twitter.com/agonesdev) Twitter account. - [ ] Run `git checkout main`. - [ ] Run `make sdk-publish-rust`. This command executes `cargo login` for authentication, performs a dry-run publish, and if that succeeds, does the actual publish. Will need [crate's API TOKEN](https://crates.io/settings/tokens) from your crate's account. - [ ] Run `make sdk-update-version release_stage=after version={version}` file. This command will update the SDKs and install directories files with `{version}+1-dev` and will also set `{version}+1` in `build/Makefile`. +- [ ] In `test/sdk/go/Makefile` change `release_version` to `{version}`. + - [ ] Run `make shell` and run `gcloud config configurations activate agones-images`. + - [ ] Within the shell `cd` to the `test/sdk/go/` directory and run `make cloud-build`. +- [ ] In `test/upgrade/Makefile` change `base_version` to `{version}`. +- [ ] In `test/upgrade/versionMap.yaml` change `ReleaseVersion` to `{version}`. + - [ ] In `test/upgrade/versionMap.yaml` copy and paste `“Dev”` in `agonesVersionFeatureGates` map. + - [ ] Change one of the `“Dev”` in `agonesVersionFeatureGates` to `{version}`. - [ ] Create PR with these changes, and merge them with approval - [ ] Close this issue. _Congratulations!_ - the release is now complete! :tada: :clap: :smile: :+1: diff --git a/examples/allocation-endpoint/README.md b/examples/allocation-endpoint/README.md index 214bd07c0b..bc1a065558 100644 --- a/examples/allocation-endpoint/README.md +++ b/examples/allocation-endpoint/README.md @@ -44,7 +44,7 @@ helm upgrade my-release --install --namespace agones-system --create-namespace a --set agones.allocator.service.http.enabled=false ``` -After installing Agones, deploy [ESP](https://cloud.google.com/endpoints/docs/grpc/specify-esp-v2-startup-options) which is an envoy based proxy, deployed as a sidecar along side `agones-alloator` container. Run the following to patch the service deployement, change the service port to ESP and add annotation to `agones-allocator` service account to impersonate GCP service account. +After installing Agones, deploy [ESP](https://cloud.google.com/endpoints/docs/grpc/specify-esp-v2-startup-options) which is an envoy based proxy, deployed as a sidecar along side `agones-alloator` container. Run the following to patch the service deployment, change the service port to ESP and add annotation to `agones-allocator` service account to impersonate GCP service account. Replace [GKE-PROJECT-ID] in `patch-agones-allocator.yaml` with your project ID before running the scripts. diff --git a/examples/allocator-client-csharp/Program.cs b/examples/allocator-client-csharp/Program.cs index 2c665f344a..3302a550df 100644 --- a/examples/allocator-client-csharp/Program.cs +++ b/examples/allocator-client-csharp/Program.cs @@ -13,7 +13,7 @@ class Program static async Task Main(string[] args) { if (args.Length < 6) { - throw new Exception("Arguments are missing. Expecting: "); + throw new Exception("Arguments are missing. Expecting: "); } string clientKey = File.ReadAllText(args[0]); diff --git a/examples/cpp-simple/Dockerfile b/examples/cpp-simple/Dockerfile index bb6a87b37a..b858900f5d 100644 --- a/examples/cpp-simple/Dockerfile +++ b/examples/cpp-simple/Dockerfile @@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /project # Install gRPC and dependencies -RUN git clone --recurse-submodules -b v1.58.3 --depth 1 --shallow-submodules https://github.com/grpc/grpc /var/local/git/grpc && \ +RUN git clone --recurse-submodules -b v1.65.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc /var/local/git/grpc && \ cd /var/local/git/grpc && \ mkdir -p cmake/build && \ cd cmake/build && \ diff --git a/examples/cpp-simple/Makefile b/examples/cpp-simple/Makefile index 5205b226fd..5e6e75d76a 100644 --- a/examples/cpp-simple/Makefile +++ b/examples/cpp-simple/Makefile @@ -30,7 +30,7 @@ PROD_REPO ?= us-docker.pkg.dev/agones-images/examples mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) project_path := $(dir $(mkfile_path)) root_path = $(realpath $(project_path)/../..) -version := 0.18 +version := 0.19 ifeq ($(REPOSITORY),) server_tag := cpp-simple-server:$(version) else diff --git a/examples/cpp-simple/fleet.yaml b/examples/cpp-simple/fleet.yaml index fa747eb096..72230a17b0 100644 --- a/examples/cpp-simple/fleet.yaml +++ b/examples/cpp-simple/fleet.yaml @@ -30,5 +30,5 @@ spec: spec: containers: - name: cpp-simple - image: us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.18 + image: us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.19 # imagePullPolicy: Always # add for development diff --git a/examples/cpp-simple/gameserver.yaml b/examples/cpp-simple/gameserver.yaml index 568d113ee4..f0f4d2dfcd 100644 --- a/examples/cpp-simple/gameserver.yaml +++ b/examples/cpp-simple/gameserver.yaml @@ -27,5 +27,5 @@ spec: spec: containers: - name: cpp-simple - image: us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.18 + image: us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.19 imagePullPolicy: Always # add for development diff --git a/examples/gameserverallocation.yaml b/examples/gameserverallocation.yaml index 61594591b9..36cb4a58de 100644 --- a/examples/gameserverallocation.yaml +++ b/examples/gameserverallocation.yaml @@ -116,3 +116,6 @@ spec: - x7un - 8inz capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000. + deleteValues: # removes values from a List's Valules array. Any nonexistant values are ignored. + - alice + - bob diff --git a/examples/simple-game-server/README.md b/examples/simple-game-server/README.md index 556de4aa08..4ca50611c7 100644 --- a/examples/simple-game-server/README.md +++ b/examples/simple-game-server/README.md @@ -43,8 +43,8 @@ There are some text commands you can send the server to affect its behavior: | "LIST_CONTAINS" | Returns true if the given value is in the given List, false otherwise | | "GET_LIST_LENGTH" | Returns the length (number of values) of the given List as a string | | "GET_LIST_VALUES" | Return the values in the given List as a comma delineated string | -| "APPEND_LIST_VALUE" | Returns if the given value was successfuly added to the List (true) or not (false) | -| "DELETE_LIST_VALUE" | Rreturns if the given value was successfuly deleted from the List (true) or not (false) | +| "APPEND_LIST_VALUE" | Returns if the given value was successfully added to the List (true) or not (false) | +| "DELETE_LIST_VALUE" | Rreturns if the given value was successfully deleted from the List (true) or not (false) | ## Configuration diff --git a/examples/simple-game-server/handlers.go b/examples/simple-game-server/handlers.go index c1ccd20688..23e26f43d9 100644 --- a/examples/simple-game-server/handlers.go +++ b/examples/simple-game-server/handlers.go @@ -283,7 +283,7 @@ func handlePlayerConnected(s *sdk.SDK, parts []string, _ ...context.CancelFunc) return } -// handleGetPlayers returns a comma delimeted list of connected players +// handleGetPlayers returns a comma delimited list of connected players func handleGetPlayers(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { log.Print("Retrieving connected player list") list, err := s.Alpha().GetConnectedPlayers() @@ -535,7 +535,7 @@ func handleGetListValues(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (r return } -// handleAppendListValue returns if the given value was successfuly added to the List or not +// handleAppendListValue returns if the given value was successfully added to the List or not func handleAppendListValue(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { if len(parts) < 3 { response = "Invalid APPEND_LIST_VALUE, should have 2 arguments" @@ -553,7 +553,7 @@ func handleAppendListValue(s *sdk.SDK, parts []string, _ ...context.CancelFunc) return } -// handleDeleteListValue returns if the given value was successfuly deleted from the List or not +// handleDeleteListValue returns if the given value was successfully deleted from the List or not func handleDeleteListValue(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { if len(parts) < 3 { response = "Invalid DELETE_LIST_VALUE, should have 2 arguments" diff --git a/examples/simple-genai-server/main.go b/examples/simple-genai-server/main.go index bfc68690a6..a4607c9bec 100644 --- a/examples/simple-genai-server/main.go +++ b/examples/simple-genai-server/main.go @@ -224,7 +224,7 @@ type Message struct { func handleGenAIRequest(prompt string, clientConn *connection, chatHistory []Message) (string, error) { var jsonStr []byte var err error - // If the endpoint is the NPC API, use the json request format specifc to that API + // If the endpoint is the NPC API, use the json request format specific to that API if clientConn.npc { npcRequest := NPCRequest{ Msg: prompt, @@ -329,7 +329,7 @@ func autonomousChat(prompt string, conn1 *connection, conn2 *connection, numChat autonomousChat(response, conn2, conn1, numChats, stopPhase, chatHistory) } -// Manually interact via TCP with the GenAI endpont +// Manually interact via TCP with the GenAI endpoint func tcpListener(port string, genAiConn *connection) { log.Printf("Starting TCP server, listening on port %s", port) ln, err := net.Listen("tcp", ":"+port) diff --git a/examples/terraform-submodules/oke/module.tf b/examples/terraform-submodules/oke/module.tf new file mode 100644 index 0000000000..c46171dd1d --- /dev/null +++ b/examples/terraform-submodules/oke/module.tf @@ -0,0 +1,130 @@ +// Copyright 2024 Google LLC All Rights Reserved. +// +// 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. + + +// Run: +// terraform apply [-var agones_version="1.17.0"] + +terraform { + required_version = ">= 1.2.0" + required_providers { + oci = { + source = "oracle/oci" + version = ">= 5.28.0" + } + } +} + +module "oke_cluster" { + source = "oracle-terraform-modules/oke/oci" + version = ">= 5.1.8" + + region = var.region + home_region = var.home_region + tenancy_id = var.tenancy_id + user_id = var.user_id + + providers = { + oci = oci + oci.home = oci.home + } + + # general oci parameters + compartment_id = var.compartment_id + + # ssh keys + ssh_private_key_path = var.ssh_private_key_path + ssh_public_key_path = var.ssh_public_key_path + + # Resource creation + assign_dns = true + create_vcn = true + create_bastion = true + create_cluster = true + create_operator = true + create_iam_resources = true + + # oke cluster options + cluster_name = var.cluster_name + cluster_type = var.cluster_type + cni_type = var.preferred_cni + control_plane_is_public = var.oke_control_plane == "public" + kubernetes_version = var.kubernetes_version + + # node pools + worker_pools = { + node_pool_1 = { + shape = "VM.Standard.E4.Flex", + ocpus = 2, + memory = 32, + size = var.node_count, + boot_volume_size = 150, + } + } + + # security + bastion_allowed_cidrs = ["0.0.0.0/0"] + control_plane_allowed_cidrs = ["0.0.0.0/0"] + allow_worker_ssh_access = true + assign_public_ip_to_control_plane = true +} + +data "oci_containerengine_cluster_kube_config" "oke_cluster_kubeconfig" { + cluster_id = module.oke_cluster.cluster_id +} + +resource "local_file" "kubeconfig" { + content = data.oci_containerengine_cluster_kube_config.oke_cluster_kubeconfig.content + filename = "${path.module}/generated/kubeconfig" + file_permission = "0600" +} + +resource "oci_core_network_security_group_security_rule" "worker_ingress_rule" { + network_security_group_id = module.oke_cluster.worker_nsg_id + direction = "INGRESS" + protocol = "17" + source = "0.0.0.0/0" + source_type = "CIDR_BLOCK" + + udp_options { + destination_port_range { + #Required + max = 8000 + min = 7000 + } + } +} + +resource "oci_core_network_security_group_security_rule" "worker_egress_rule" { + network_security_group_id = module.oke_cluster.worker_nsg_id + direction = "EGRESS" + protocol = "all" + destination = "0.0.0.0/0" + destination_type = "CIDR_BLOCK" +} + +module "helm_agones" { + // *************************************************************************************************** + // Update ?ref= to the agones release you are installing. For example, ?ref=release-1.17.0 corresponds + // to Agones version 1.17.0 + // *************************************************************************************************** + source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/oke-helm3/?ref=main" + + udp_expose = "false" + agones_version = var.agones_version + values_file = "" + feature_gates = var.feature_gates + log_level = var.log_level + cluster_kebuconfig = data.oci_containerengine_cluster_kube_config.oke_cluster_kubeconfig.content +} diff --git a/examples/terraform-submodules/oke/outputs.tf b/examples/terraform-submodules/oke/outputs.tf new file mode 100644 index 0000000000..6b7272ddcb --- /dev/null +++ b/examples/terraform-submodules/oke/outputs.tf @@ -0,0 +1,48 @@ +// Copyright 2024 Google LLC All Rights Reserved. +// +// 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. + +output "cluster_endpoints" { + description = "Endpoints for the OKE cluster" + value = module.oke_cluster.cluster_endpoints +} + +output "cluster_kubeconfig" { + description = "OKE kebuconfig" + value = module.oke_cluster.cluster_kubeconfig +} + +output "cluster_ca_cert" { + description = "OKE cluster CA certificate" + value = module.oke_cluster.cluster_ca_cert +} + +output "bastion_public_ip" { + description = "Public IP address of bastion host" + value = module.oke_cluster.bastion_public_ip +} + +output "operator_private_ip" { + description = "Private IP address of operator host" + value = module.oke_cluster.operator_private_ip +} + +output "ssh_to_bastion" { + description = "SSH command for bastion host" + value = module.oke_cluster.ssh_to_bastion +} + +output "ssh_to_operator" { + description = "SSH command for operator host" + value = module.oke_cluster.ssh_to_operator +} diff --git a/examples/terraform-submodules/oke/providers.tf b/examples/terraform-submodules/oke/providers.tf new file mode 100644 index 0000000000..1b3150f143 --- /dev/null +++ b/examples/terraform-submodules/oke/providers.tf @@ -0,0 +1,30 @@ +// Copyright 2024 Google LLC All Rights Reserved. +// +// 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. + +provider "oci" { + fingerprint = var.api_fingerprint + private_key_path = var.api_private_key_path + region = var.region + tenancy_ocid = var.tenancy_id + user_ocid = var.user_id +} + +provider "oci" { + fingerprint = var.api_fingerprint + private_key_path = var.api_private_key_path + region = var.home_region + tenancy_ocid = var.tenancy_id + user_ocid = var.user_id + alias = "home" +} diff --git a/examples/terraform-submodules/oke/terraform.auto.tfvars.example b/examples/terraform-submodules/oke/terraform.auto.tfvars.example new file mode 100644 index 0000000000..1dbeb40cb3 --- /dev/null +++ b/examples/terraform-submodules/oke/terraform.auto.tfvars.example @@ -0,0 +1,37 @@ +// Copyright 2024 Google LLC All Rights Reserved. +// +// 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. + +# OCI provider +api_fingerprint = "4d:bf:d7:fa:64:e1:f1:81:45:fe:9a:d3:b1:04:bc:5d" +api_private_key_path = "~/.oci/oracleidentitycloudservice_xingning.ou-08-16-08-54.pem" +region = "us-chicago-1" +home_region = "us-ashburn-1" +tenancy_id = "ocid1.tenancy.oc1..aaaaaaaaro7aox2fclu4urtpgsbacnrmjv46e7n4fw3sc2wbq24l7dzf3kba" +user_id = "ocid1.user.oc1..aaaaaaaas6bmijxsml3tf2o5nmm6r5zydvgf26eg5lbhn6e2yxquhgycqq5q" +compartment_id = "ocid1.compartment.oc1..aaaaaaaawlhbg2uucr7at3lzkdwwucr7wdz47vb25dlvtmauqdbnlrrtcv6a" + + +# SSH keys +ssh_private_key_path = "~/.ssh/ssh-key-2022-11-08.key" +ssh_public_key_path = "~/.ssh/ssh-key-2022-11-08.key.pub" + +# OKE cluster +cluster_name = "agones-cluster" +cluster_type = "basic" +kubernetes_version = "v1.30.1" + +# Agones +node_count = 3 +agones_version = "" +feature_gates = "" diff --git a/examples/terraform-submodules/oke/variables.tf b/examples/terraform-submodules/oke/variables.tf new file mode 100644 index 0000000000..da33b63992 --- /dev/null +++ b/examples/terraform-submodules/oke/variables.tf @@ -0,0 +1,144 @@ +// Copyright 2024 Google LLC All Rights Reserved. +// +// 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. + +# OCI Provider parameters +variable "api_fingerprint" { + description = "Fingerprint of the API private key to use with OCI API." + default = "" + type = string +} + +variable "api_private_key_path" { + description = "The path to the OCI API private key." + default = "" + type = string +} + +variable "region" { + description = "The tenancy's region. Use the short form in lower case e.g. phoenix" + default = "ap-singapore-1" + type = string +} + +variable "home_region" { + description = "The tenancy's home region. Use the short form in lower case e.g. phoenix" + default = "ap-singapore-1" + type = string +} + +variable "tenancy_id" { + description = "The tenancy if of the OCI Cloud Account in which to create the resources." + type = string +} + +variable "user_id" { + description = "The id of the user that Terraform will use to create the resources." + default = "" + type = string +} + + +# General OCI parameters +variable "compartment_id" { + description = "The compartment id where to create all resources." + type = string +} + +# ssh keys +variable "ssh_private_key_path" { + description = "The path to ssh private key." + default = "none" + type = string +} + +variable "ssh_public_key_path" { + description = "The path to ssh public key." + default = "none" + type = string +} + +# Cluster +variable "kubernetes_version" { + description = "The version of Kubernetes to use." + default = "v1.30.1" + type = string +} + +variable "cluster_type" { + description = "Whether to use basic or enhanced OKE clusters." + default = "basic" + type = string + + validation { + condition = contains(["basic", "enhanced"], lower(var.cluster_type)) + error_message = "Accepted values are 'basic' or 'enhanced'." + } +} + +variable "oke_control_plane" { + description = "Whether to keep all OKE control planes public or private." + default = "public" + type = string + + validation { + condition = contains(["public", "private"], lower(var.oke_control_plane)) + error_message = "Accepted values are 'public' or 'private'." + } +} + +variable "preferred_cni" { + description = "Whether to use flannel or NPN" + default = "flannel" + type = string + + validation { + condition = contains(["flannel", "npn"], lower(var.preferred_cni)) + error_message = "Accepted values are 'flannel' or 'npn'." + } +} + +variable "nodepools" { + description = "Node pools for cluster" + type = any + default = { + np1 = { + shape = "VM.Standard.E4.Flex", + ocpus = 2, + memory = 32, + size = 3, + boot_volume_size = 150, + } + } +} + +// Install latest version of agones +variable "agones_version" { + default = "" +} + +variable "cluster_name" { + default = "agones-cluster" +} + +variable "node_count" { + default = "3" +} + +variable "log_level" { + default = "info" +} + +variable "feature_gates" { + default = "" +} diff --git a/go.mod b/go.mod index a308832302..c46a278381 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module agones.dev/agones -go 1.22 +go 1.22.0 toolchain go1.22.6 diff --git a/install/helm/agones/Chart.yaml b/install/helm/agones/Chart.yaml index 26b3d24588..59441c148d 100644 --- a/install/helm/agones/Chart.yaml +++ b/install/helm/agones/Chart.yaml @@ -15,8 +15,8 @@ # Declare variables to be passed into your templates. apiVersion: v1 -appVersion: "1.45.0-dev" -version: 1.45.0-dev +appVersion: "1.46.0-dev" +version: 1.46.0-dev name: agones description: a library for hosting, running and scaling dedicated game servers on Kubernetes. keywords: diff --git a/install/helm/agones/templates/controller.yaml b/install/helm/agones/templates/controller.yaml index a56ad3aa3c..58f9389339 100644 --- a/install/helm/agones/templates/controller.yaml +++ b/install/helm/agones/templates/controller.yaml @@ -59,6 +59,9 @@ spec: app: {{ template "agones.name" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.agones.controller.labels }} +{{- toYaml .Values.agones.controller.labels | nindent 8 }} +{{- end }} spec: {{- if .Values.agones.controller.topologySpreadConstraints }} topologySpreadConstraints: diff --git a/install/helm/agones/templates/crds/k8s/_io.k8s.api.core.v1.PodTemplateSpec.yaml b/install/helm/agones/templates/crds/k8s/_io.k8s.api.core.v1.PodTemplateSpec.yaml index d9d30ad7fd..10fc769983 100644 --- a/install/helm/agones/templates/crds/k8s/_io.k8s.api.core.v1.PodTemplateSpec.yaml +++ b/install/helm/agones/templates/crds/k8s/_io.k8s.api.core.v1.PodTemplateSpec.yaml @@ -381,12 +381,12 @@ properties: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -475,12 +475,12 @@ properties: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -568,12 +568,12 @@ properties: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -662,12 +662,12 @@ properties: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -752,7 +752,7 @@ properties: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -797,7 +797,7 @@ properties: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -819,7 +819,7 @@ properties: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -832,7 +832,7 @@ properties: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -1324,6 +1324,31 @@ properties: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -1578,7 +1603,7 @@ properties: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -1595,6 +1620,18 @@ properties: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -1690,7 +1727,7 @@ properties: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -1735,7 +1772,7 @@ properties: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -1757,7 +1794,7 @@ properties: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -1770,7 +1807,7 @@ properties: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -2262,6 +2299,31 @@ properties: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -2522,7 +2584,7 @@ properties: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -2539,6 +2601,18 @@ properties: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -2558,7 +2632,7 @@ properties: type: object type: array hostAliases: - description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. items: properties: hostnames: @@ -2569,6 +2643,8 @@ properties: ip: description: IP address of the host file entry. type: string + required: + - ip type: object type: array hostIPC: @@ -2591,7 +2667,7 @@ properties: items: properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -2630,7 +2706,7 @@ properties: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -2675,7 +2751,7 @@ properties: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -2697,7 +2773,7 @@ properties: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -2710,7 +2786,7 @@ properties: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -3202,6 +3278,31 @@ properties: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -3456,7 +3557,7 @@ properties: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -3473,6 +3574,18 @@ properties: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -3506,7 +3619,7 @@ properties: If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions - If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup properties: name: description: "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null" @@ -3603,8 +3716,6 @@ properties: SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. - - This is a beta feature enabled by the PodSchedulingReadiness feature gate. items: properties: name: @@ -3617,6 +3728,31 @@ properties: securityContext: description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." properties: + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object fsGroup: description: |- A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: @@ -3727,7 +3863,7 @@ properties: type: object type: object serviceAccount: - description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." + description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." type: string serviceAccountName: description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" @@ -3836,8 +3972,6 @@ properties: MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - - This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). format: int32 type: integer nodeAffinityPolicy: @@ -3994,7 +4128,7 @@ properties: description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4017,7 +4151,7 @@ properties: description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4054,7 +4188,7 @@ properties: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -4073,7 +4207,7 @@ properties: description: nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4100,7 +4234,7 @@ properties: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -4315,6 +4449,11 @@ properties: accessModes: description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" items: + enum: + - ReadOnlyMany + - ReadWriteMany + - ReadWriteOnce + - ReadWriteOncePod type: string type: array dataSource: @@ -4409,7 +4548,7 @@ properties: description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" type: string volumeAttributesClassName: - description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." + description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." type: string volumeMode: description: |- @@ -4475,7 +4614,7 @@ properties: description: "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4611,7 +4750,7 @@ properties: description: secretRef is the CHAP Secret for iSCSI target and initiator authentication properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4770,7 +4909,7 @@ properties: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -4784,7 +4923,7 @@ properties: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -4847,7 +4986,7 @@ properties: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional field specify whether the Secret or its key must be defined @@ -4924,7 +5063,7 @@ properties: description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4954,7 +5093,7 @@ properties: description: secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5024,7 +5163,7 @@ properties: description: secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic diff --git a/install/helm/agones/templates/extensions-deployment.yaml b/install/helm/agones/templates/extensions-deployment.yaml index 3745af240b..f6350a96c0 100644 --- a/install/helm/agones/templates/extensions-deployment.yaml +++ b/install/helm/agones/templates/extensions-deployment.yaml @@ -52,6 +52,9 @@ spec: app: {{ template "agones.name" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.agones.extensions.labels }} +{{- toYaml .Values.agones.extensions.labels | nindent 8 }} +{{- end }} spec: {{- if .Values.agones.extensions.topologySpreadConstraints }} topologySpreadConstraints: diff --git a/install/helm/agones/templates/hooks/pre_delete_hook.yaml b/install/helm/agones/templates/hooks/pre_delete_hook.yaml index 18ca55b6a4..6a1285d6ce 100644 --- a/install/helm/agones/templates/hooks/pre_delete_hook.yaml +++ b/install/helm/agones/templates/hooks/pre_delete_hook.yaml @@ -41,7 +41,7 @@ spec: restartPolicy: Never containers: - name: pre-delete-delete-agones-resources - image: "bitnami/kubectl:1.29.7" + image: "bitnami/kubectl:1.30.4" command: - "/bin/sh" - "/scripts/delete_agones_resources.sh" diff --git a/install/helm/agones/templates/service/allocation.yaml b/install/helm/agones/templates/service/allocation.yaml index e360a125d8..8c538029f8 100644 --- a/install/helm/agones/templates/service/allocation.yaml +++ b/install/helm/agones/templates/service/allocation.yaml @@ -65,7 +65,7 @@ spec: targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }} {{- if .Values.agones.allocator.service.grpc.appProtocol }} appProtocol: {{.Values.agones.allocator.service.grpc.appProtocol}} - {{- end}} + {{- end}} {{- if eq .Values.agones.allocator.service.serviceType "NodePort" }} nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }} {{- end }} @@ -79,6 +79,7 @@ spec: loadBalancerIP: {{ .Values.agones.allocator.service.loadBalancerIP }} {{- end }} {{- if eq .Values.agones.allocator.service.serviceType "LoadBalancer" }} + externalTrafficPolicy: {{ .Values.agones.allocator.service.externalTrafficPolicy }} {{- if .Values.agones.allocator.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.agones.allocator.service.loadBalancerSourceRanges | indent 4 }} diff --git a/install/helm/agones/values.yaml b/install/helm/agones/values.yaml index 2938c04f13..85d1ea9ac2 100644 --- a/install/helm/agones/values.yaml +++ b/install/helm/agones/values.yaml @@ -54,6 +54,7 @@ agones: # cpu: 1 # memory: 256Mi nodeSelector: {} + labels: {} annotations: {} tolerations: - key: "agones.dev/agones-system" @@ -105,6 +106,7 @@ agones: # memory: 256Mi nodeSelector: {} annotations: {} + labels: {} # Determines if the Agones extensions should operate in hostNetwork mode. # # This setting is necessary for certain managed Kubernetes clusters (e.g., AWS EKS) that use custom @@ -231,6 +233,7 @@ agones: service: name: agones-allocator serviceType: LoadBalancer + externalTrafficPolicy: Cluster clusterIP: "" loadBalancerIP: "" loadBalancerSourceRanges: [] @@ -271,7 +274,7 @@ agones: topologySpreadConstraints: {} image: registry: us-docker.pkg.dev/agones-images/release - tag: 1.45.0-dev + tag: 1.46.0-dev controller: name: agones-controller pullPolicy: IfNotPresent diff --git a/install/terraform/modules/aks/variables.tf b/install/terraform/modules/aks/variables.tf index daf1be3a60..9f5e03751b 100644 --- a/install/terraform/modules/aks/variables.tf +++ b/install/terraform/modules/aks/variables.tf @@ -34,7 +34,7 @@ variable "enable_node_public_ip" { } variable "kubernetes_version" { - default = "1.30" + default = "1.31" } variable "machine_type" { diff --git a/install/terraform/modules/eks/eks.tf b/install/terraform/modules/eks/eks.tf index 8be74a93a6..d014ae345c 100644 --- a/install/terraform/modules/eks/eks.tf +++ b/install/terraform/modules/eks/eks.tf @@ -100,7 +100,7 @@ module "eks" { cluster_name = var.cluster_name subnets = module.vpc.public_subnets vpc_id = module.vpc.vpc_id - cluster_version = "1.30" + cluster_version = "1.31" worker_groups_launch_template = [ { diff --git a/install/terraform/modules/gke-autopilot/cluster.tf b/install/terraform/modules/gke-autopilot/cluster.tf index 1169fae99d..233412f76b 100644 --- a/install/terraform/modules/gke-autopilot/cluster.tf +++ b/install/terraform/modules/gke-autopilot/cluster.tf @@ -28,7 +28,7 @@ locals { network = lookup(var.cluster, "network", "default") subnetwork = lookup(var.cluster, "subnetwork", "") releaseChannel = lookup(var.cluster, "releaseChannel", "REGULAR") - kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "1.29") + kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "1.30") maintenanceExclusionStartTime = lookup(var.cluster, "maintenanceExclusionStartTime", null) maintenanceExclusionEndTime = lookup(var.cluster, "maintenanceExclusionEndTime", null) deletionProtection = lookup(var.cluster, "deletionProtection", true) diff --git a/install/terraform/modules/gke-autopilot/variables.tf b/install/terraform/modules/gke-autopilot/variables.tf index ef07280d4d..354e7bfbb6 100644 --- a/install/terraform/modules/gke-autopilot/variables.tf +++ b/install/terraform/modules/gke-autopilot/variables.tf @@ -26,7 +26,7 @@ variable "cluster" { "network" = "default" "subnetwork" = "" "releaseChannel" = "REGULAR" - "kubernetesVersion" = "1.29" + "kubernetesVersion" = "1.30" "deletionProtection" = true "maintenanceExclusionStartTime" = null "maintenanceExclusionEndTime" = null diff --git a/install/terraform/modules/gke/cluster.tf b/install/terraform/modules/gke/cluster.tf index 2ef3fd6206..fad700e7e3 100644 --- a/install/terraform/modules/gke/cluster.tf +++ b/install/terraform/modules/gke/cluster.tf @@ -32,7 +32,7 @@ locals { network = lookup(var.cluster, "network", "default") subnetwork = lookup(var.cluster, "subnetwork", "") releaseChannel = lookup(var.cluster, "releaseChannel", "UNSPECIFIED") - kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "1.29") + kubernetesVersion = lookup(var.cluster, "kubernetesVersion", "1.30") windowsInitialNodeCount = lookup(var.cluster, "windowsInitialNodeCount", "0") windowsMachineType = lookup(var.cluster, "windowsMachineType", "e2-standard-4") autoscale = lookup(var.cluster, "autoscale", false) diff --git a/install/terraform/modules/gke/variables.tf b/install/terraform/modules/gke/variables.tf index 173ee4c830..a326ff2c4e 100644 --- a/install/terraform/modules/gke/variables.tf +++ b/install/terraform/modules/gke/variables.tf @@ -28,7 +28,7 @@ variable "cluster" { "network" = "default" "subnetwork" = "" "releaseChannel" = "UNSPECIFIED" - "kubernetesVersion" = "1.29" + "kubernetesVersion" = "1.30" "windowsInitialNodeCount" = "0" "windowsMachineType" = "e2-standard-4" "autoscale" = false diff --git a/install/terraform/modules/oke-helm3/helm.tf b/install/terraform/modules/oke-helm3/helm.tf new file mode 100644 index 0000000000..fb306b276a --- /dev/null +++ b/install/terraform/modules/oke-helm3/helm.tf @@ -0,0 +1,167 @@ +# Copyright 2024 Google LLC All Rights Reserved. +# +# 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. + +# +# This is a Helm 3.x module, and is the module that should be actively used. +# +terraform { + required_version = ">= 1.0.0" + required_providers { + helm = { + version = "~> 2.3" + source = "hashicorp/helm" + } + } +} + +provider "helm" { + kubernetes { + host = local.cluster_endpoint + cluster_ca_certificate = local.cluster_ca_certificate + insecure = local.external_private_endpoint + exec { + api_version = "client.authentication.k8s.io/v1beta1" + args = ["ce", "cluster", "generate-token", "--cluster-id", local.cluster_id, "--region", local.cluster_region] + command = "oci" + } + } +} + +resource "helm_release" "agones" { + name = "agones" + repository = "https://agones.dev/chart/stable" + force_update = var.force_update + chart = var.chart + timeout = 900 + version = var.agones_version + namespace = "agones-system" + create_namespace = true + + # Use terraform of the latest >=1.0.0 version + values = [ + length(var.values_file) == 0 ? "" : file(var.values_file), + ] + + dynamic "set" { + for_each = tolist(var.set_values) + iterator = set_item + + content { + name = set_item.value.name + type = set_item.value.type + value = set_item.value.value + } + } + + dynamic "set_list" { + for_each = tolist(var.set_list_values) + iterator = set_item + + content { + name = set_item.value.name + value = set_item.value.value + } + } + + // Due to a Terraform limitation sensitive values can't be iterated over. + // See https://github.com/hashicorp/terraform/issues/29744 + dynamic "set_sensitive" { + for_each = tolist(nonsensitive(var.set_sensitive_values)) + iterator = set_item + + content { + name = set_item.value.name + type = set_item.value.type + value = sensitive(set_item.value.value) + } + } + + set { + name = "agones.crds.CleanupOnDelete" + value = var.crd_cleanup + } + + set { + name = "agones.image.registry" + value = var.image_registry + } + + set { + name = "agones.image.controller.pullPolicy" + value = var.pull_policy + } + + set { + name = "agones.image.sdk.alwaysPull" + value = var.always_pull_sidecar + } + + set { + name = "agones.image.controller.pullSecret" + value = var.image_pull_secret + } + + set { + name = "agones.ping.http.serviceType" + value = var.ping_service_type + } + + set { + name = "agones.ping.udp.expose" + value = var.udp_expose + } + + set { + name = "agones.ping.udp.serviceType" + value = var.ping_service_type + } + + set { + name = "agones.controller.logLevel" + value = var.log_level + } + + set { + name = "agones.featureGates" + value = var.feature_gates + } + + set { + name = "gameservers.namespaces" + value = "{${join(",", var.gameserver_namespaces)}}" + } + + set { + name = "gameservers.minPort" + value = var.gameserver_minPort + } + + set { + name = "gameservers.maxPort" + value = var.gameserver_maxPort + } + + set { + name = "agones.allocator.service.loadBalancerIP" + value = var.load_balancer_ip + } +} + +locals { + cluster_endpoint = yamldecode(var.cluster_kebuconfig)["clusters"][0]["cluster"]["server"] + external_private_endpoint = (var.cluster_endpoint_visibility == "Private") ? true : false + cluster_ca_certificate = base64decode(yamldecode(var.cluster_kebuconfig)["clusters"][0]["cluster"]["certificate-authority-data"]) + cluster_id = yamldecode(var.cluster_kebuconfig)["users"][0]["user"]["exec"]["args"][4] + cluster_region = yamldecode(var.cluster_kebuconfig)["users"][0]["user"]["exec"]["args"][6] +} diff --git a/install/terraform/modules/oke-helm3/variables.tf b/install/terraform/modules/oke-helm3/variables.tf new file mode 100644 index 0000000000..6b8141ff26 --- /dev/null +++ b/install/terraform/modules/oke-helm3/variables.tf @@ -0,0 +1,135 @@ +# Copyright 2024 Google LLC All Rights Reserved. +# +# 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. + +#Helm variables + +variable "chart" { + default = "agones" +} + +variable "force_update" { + default = "true" +} + +variable "agones_version" { + default = "" +} + +variable "udp_expose" { + default = "true" +} + +variable "log_level" { + default = "info" +} + +variable "feature_gates" { + default = "" +} + +variable "crd_cleanup" { + default = "true" +} + +variable "image_registry" { + default = "us-docker.pkg.dev/agones-images/release" +} + +variable "pull_policy" { + default = "IfNotPresent" +} + +variable "always_pull_sidecar" { + default = "false" +} + +variable "image_pull_secret" { + default = "" +} + +variable "ping_service_type" { + default = "LoadBalancer" +} + +variable "values_file" { + default = "" +} + +variable "gameserver_minPort" { + default = "7000" +} + +variable "gameserver_maxPort" { + default = "8000" +} + +variable "gameserver_namespaces" { + default = ["default"] + type = list(string) +} + +variable "load_balancer_ip" { + default = "" +} + +variable "set_values" { + type = set(object({ + name = string + type = string + value = string + })) + default = [] +} + +variable "set_list_values" { + type = set(object({ + name = string + value = list(string) + })) + default = [] +} + +variable "set_sensitive_values" { + type = set(object({ + name = string + type = string + value = string + })) + default = [] + sensitive = true +} + +variable "cluster_kebuconfig" { + description = "OKE kubeconfig" +} + +variable "cluster_endpoint_visibility" { + default = "Public" + description = "The Kubernetes cluster that is created will be hosted on a public subnet with a public IP address auto-assigned or on a private subnet. If Private, additional configuration will be necessary to run kubectl commands" + + validation { + condition = var.cluster_endpoint_visibility == "Private" || var.cluster_endpoint_visibility == "Public" + error_message = "Sorry, but cluster endpoint visibility can only be Private or Public." + } +} + +variable "cluster_load_balancer_visibility" { + default = "Public" + description = "The Load Balancer that is created will be hosted on a public subnet with a public IP address auto-assigned or on a private subnet. This affects the Kubernetes services, ingress controller and other load balancers resources" + + validation { + condition = var.cluster_load_balancer_visibility == "Private" || var.cluster_load_balancer_visibility == "Public" + error_message = "Sorry, but cluster load balancer visibility can only be Private or Public." + } +} diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml index fae07f702c..19d3c9596f 100644 --- a/install/yaml/install.yaml +++ b/install/yaml/install.yaml @@ -50,7 +50,7 @@ metadata: namespace: agones-system labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm --- @@ -75,7 +75,7 @@ metadata: namespace: agones-system labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm --- @@ -100,7 +100,7 @@ metadata: namespace: default labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm --- @@ -112,7 +112,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.45.0-dev" + chart: "agones-1.46.0-dev" release: "agones-manual" heritage: "Helm" type: Opaque @@ -129,7 +129,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.45.0-dev" + chart: "agones-1.46.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -145,7 +145,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.45.0-dev" + chart: "agones-1.46.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -161,7 +161,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.45.0-dev" + chart: "agones-1.46.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -191,7 +191,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -814,12 +814,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -908,12 +908,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -1001,12 +1001,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -1095,12 +1095,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -1185,7 +1185,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -1230,7 +1230,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -1252,7 +1252,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -1265,7 +1265,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -1757,6 +1757,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -2011,7 +2036,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -2028,6 +2053,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -2123,7 +2160,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -2168,7 +2205,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -2190,7 +2227,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -2203,7 +2240,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -2695,6 +2732,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -2955,7 +3017,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -2972,6 +3034,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -2991,7 +3065,7 @@ spec: type: object type: array hostAliases: - description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. items: properties: hostnames: @@ -3002,6 +3076,8 @@ spec: ip: description: IP address of the host file entry. type: string + required: + - ip type: object type: array hostIPC: @@ -3024,7 +3100,7 @@ spec: items: properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -3063,7 +3139,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -3108,7 +3184,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -3130,7 +3206,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -3143,7 +3219,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -3635,6 +3711,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -3889,7 +3990,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -3906,6 +4007,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -3939,7 +4052,7 @@ spec: If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions - If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup properties: name: description: "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null" @@ -4036,8 +4149,6 @@ spec: SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. - - This is a beta feature enabled by the PodSchedulingReadiness feature gate. items: properties: name: @@ -4050,6 +4161,31 @@ spec: securityContext: description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." properties: + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object fsGroup: description: |- A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: @@ -4160,7 +4296,7 @@ spec: type: object type: object serviceAccount: - description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." + description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." type: string serviceAccountName: description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" @@ -4269,8 +4405,6 @@ spec: MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - - This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). format: int32 type: integer nodeAffinityPolicy: @@ -4427,7 +4561,7 @@ spec: description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4450,7 +4584,7 @@ spec: description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4487,7 +4621,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -4506,7 +4640,7 @@ spec: description: nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -4533,7 +4667,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -4748,6 +4882,11 @@ spec: accessModes: description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" items: + enum: + - ReadOnlyMany + - ReadWriteMany + - ReadWriteOnce + - ReadWriteOncePod type: string type: array dataSource: @@ -4842,7 +4981,7 @@ spec: description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" type: string volumeAttributesClassName: - description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." + description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." type: string volumeMode: description: |- @@ -4908,7 +5047,7 @@ spec: description: "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5044,7 +5183,7 @@ spec: description: secretRef is the CHAP Secret for iSCSI target and initiator authentication properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5203,7 +5342,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -5217,7 +5356,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -5280,7 +5419,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional field specify whether the Secret or its key must be defined @@ -5357,7 +5496,7 @@ spec: description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5387,7 +5526,7 @@ spec: description: secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5457,7 +5596,7 @@ spec: description: secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -5783,7 +5922,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -5973,7 +6112,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -6385,12 +6524,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -6479,12 +6618,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -6572,12 +6711,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -6666,12 +6805,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -6756,7 +6895,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -6801,7 +6940,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -6823,7 +6962,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -6836,7 +6975,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -7328,6 +7467,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -7582,7 +7746,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -7599,6 +7763,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -7694,7 +7870,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -7739,7 +7915,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -7761,7 +7937,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -7774,7 +7950,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -8266,6 +8442,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -8526,7 +8727,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -8543,6 +8744,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -8562,7 +8775,7 @@ spec: type: object type: array hostAliases: - description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. items: properties: hostnames: @@ -8573,6 +8786,8 @@ spec: ip: description: IP address of the host file entry. type: string + required: + - ip type: object type: array hostIPC: @@ -8595,7 +8810,7 @@ spec: items: properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -8634,7 +8849,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -8679,7 +8894,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -8701,7 +8916,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -8714,7 +8929,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -9206,6 +9421,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -9460,7 +9700,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -9477,6 +9717,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -9510,7 +9762,7 @@ spec: If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions - If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup properties: name: description: "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null" @@ -9607,8 +9859,6 @@ spec: SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. - - This is a beta feature enabled by the PodSchedulingReadiness feature gate. items: properties: name: @@ -9621,6 +9871,31 @@ spec: securityContext: description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." properties: + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object fsGroup: description: |- A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: @@ -9731,7 +10006,7 @@ spec: type: object type: object serviceAccount: - description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." + description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." type: string serviceAccountName: description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" @@ -9840,8 +10115,6 @@ spec: MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - - This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). format: int32 type: integer nodeAffinityPolicy: @@ -9998,7 +10271,7 @@ spec: description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10021,7 +10294,7 @@ spec: description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10058,7 +10331,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -10077,7 +10350,7 @@ spec: description: nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10104,7 +10377,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -10319,6 +10592,11 @@ spec: accessModes: description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" items: + enum: + - ReadOnlyMany + - ReadWriteMany + - ReadWriteOnce + - ReadWriteOncePod type: string type: array dataSource: @@ -10413,7 +10691,7 @@ spec: description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" type: string volumeAttributesClassName: - description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." + description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." type: string volumeMode: description: |- @@ -10479,7 +10757,7 @@ spec: description: "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10615,7 +10893,7 @@ spec: description: secretRef is the CHAP Secret for iSCSI target and initiator authentication properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10774,7 +11052,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -10788,7 +11066,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -10851,7 +11129,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional field specify whether the Secret or its key must be defined @@ -10928,7 +11206,7 @@ spec: description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -10958,7 +11236,7 @@ spec: description: secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -11028,7 +11306,7 @@ spec: description: secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -11397,7 +11675,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm name: gameserverallocationpolicies.multicluster.agones.dev @@ -11476,7 +11754,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -12078,12 +12356,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -12172,12 +12450,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -12265,12 +12543,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -12359,12 +12637,12 @@ spec: type: object x-kubernetes-map-type: atomic matchLabelKeys: - description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. Also, MatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array mismatchLabelKeys: - description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `LabelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both MismatchLabelKeys and LabelSelector. Also, MismatchLabelKeys cannot be set when LabelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. + description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. items: type: string type: array @@ -12449,7 +12727,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -12494,7 +12772,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -12516,7 +12794,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -12529,7 +12807,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -13021,6 +13299,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -13275,7 +13578,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -13292,6 +13595,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -13387,7 +13702,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -13432,7 +13747,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -13454,7 +13769,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -13467,7 +13782,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -13959,6 +14274,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -14219,7 +14559,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -14236,6 +14576,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -14255,7 +14607,7 @@ spec: type: object type: array hostAliases: - description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + description: HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. items: properties: hostnames: @@ -14266,6 +14618,8 @@ spec: ip: description: IP address of the host file entry. type: string + required: + - ip type: object type: array hostIPC: @@ -14288,7 +14642,7 @@ spec: items: properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -14327,7 +14681,7 @@ spec: description: The key to select. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap or its key must be defined @@ -14372,7 +14726,7 @@ spec: description: The key of the secret to select from. Must be a valid secret key. type: string name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret or its key must be defined @@ -14394,7 +14748,7 @@ spec: description: The ConfigMap to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the ConfigMap must be defined @@ -14407,7 +14761,7 @@ spec: description: The Secret to select from properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: Specify whether the Secret must be defined @@ -14899,6 +15253,31 @@ spec: allowPrivilegeEscalation: description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows." type: boolean + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object capabilities: description: The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows. properties: @@ -15153,7 +15532,7 @@ spec: type: string mountPropagation: description: |- - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None). Possible enum values: - `"Bidirectional"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume ("rshared" in Linux terminology). @@ -15170,6 +15549,18 @@ spec: readOnly: description: Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. type: boolean + recursiveReadOnly: + description: |- + RecursiveReadOnly specifies whether read-only mounts should be handled recursively. + + If ReadOnly is false, this field has no meaning and must be unspecified. + + If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason. + + If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None). + + If this field is not specified, it is treated as an equivalent of Disabled. + type: string subPath: description: Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). type: string @@ -15203,7 +15594,7 @@ spec: If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions - If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup + If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup properties: name: description: "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null" @@ -15300,8 +15691,6 @@ spec: SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. - - This is a beta feature enabled by the PodSchedulingReadiness feature gate. items: properties: name: @@ -15314,6 +15703,31 @@ spec: securityContext: description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." properties: + appArmorProfile: + description: appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". + type: string + type: + description: |- + type indicates which kind of AppArmor profile will be applied. Valid options are: + Localhost - a profile pre-loaded on the node. + RuntimeDefault - the container runtime's default profile. + Unconfined - no AppArmor enforcement. + + Possible enum values: + - `"Localhost"` indicates that a profile pre-loaded on the node should be used. + - `"RuntimeDefault"` indicates that the container runtime's default AppArmor profile should be used. + - `"Unconfined"` indicates that no AppArmor profile should be enforced. + enum: + - Localhost + - RuntimeDefault + - Unconfined + type: string + required: + - type + type: object fsGroup: description: |- A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: @@ -15424,7 +15838,7 @@ spec: type: object type: object serviceAccount: - description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." + description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead." type: string serviceAccountName: description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" @@ -15533,8 +15947,6 @@ spec: MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - - This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). format: int32 type: integer nodeAffinityPolicy: @@ -15691,7 +16103,7 @@ spec: description: "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -15714,7 +16126,7 @@ spec: description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -15751,7 +16163,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -15770,7 +16182,7 @@ spec: description: nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -15797,7 +16209,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -16012,6 +16424,11 @@ spec: accessModes: description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" items: + enum: + - ReadOnlyMany + - ReadWriteMany + - ReadWriteOnce + - ReadWriteOncePod type: string type: array dataSource: @@ -16106,7 +16523,7 @@ spec: description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" type: string volumeAttributesClassName: - description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#volumeattributesclass (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." + description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled." type: string volumeMode: description: |- @@ -16172,7 +16589,7 @@ spec: description: "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -16308,7 +16725,7 @@ spec: description: secretRef is the CHAP Secret for iSCSI target and initiator authentication properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -16467,7 +16884,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional specify whether the ConfigMap or its keys must be defined @@ -16481,7 +16898,7 @@ spec: items: properties: fieldRef: - description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported." + description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." properties: apiVersion: description: Version of the schema the FieldPath is written in terms of, defaults to "v1". @@ -16544,7 +16961,7 @@ spec: type: object type: array name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string optional: description: optional field specify whether the Secret or its key must be defined @@ -16621,7 +17038,7 @@ spec: description: "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -16651,7 +17068,7 @@ spec: description: secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -16721,7 +17138,7 @@ spec: description: secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. properties: name: - description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" type: string type: object x-kubernetes-map-type: atomic @@ -17036,7 +17453,7 @@ metadata: name: agones-allocator labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm rules: @@ -17066,7 +17483,7 @@ metadata: name: agones-controller labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm rules: @@ -17120,7 +17537,7 @@ metadata: name: agones-sdk labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm rules: @@ -17139,7 +17556,7 @@ metadata: name: agones-allocator labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm subjects: @@ -17158,7 +17575,7 @@ metadata: name: agones-controller-access labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm subjects: @@ -17210,7 +17627,7 @@ metadata: namespace: default labels: app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm subjects: @@ -17244,7 +17661,7 @@ metadata: labels: agones.dev/role: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17278,7 +17695,7 @@ metadata: labels: agones.dev/role: extensions app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17298,7 +17715,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17320,7 +17737,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17356,7 +17773,7 @@ metadata: labels: agones.dev/role: extensions app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17393,7 +17810,7 @@ metadata: labels: component: allocator app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17405,6 +17822,7 @@ spec: targetPort: 8443 protocol: TCP type: LoadBalancer + externalTrafficPolicy: Cluster --- # Source: agones/templates/service/allocation.yaml apiVersion: v1 @@ -17415,7 +17833,7 @@ metadata: labels: multicluster.agones.dev/role: allocator app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17449,7 +17867,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17491,7 +17909,7 @@ spec: serviceAccountName: agones-controller containers: - name: agones-controller - image: "us-docker.pkg.dev/agones-images/release/agones-controller:1.45.0-dev" + image: "us-docker.pkg.dev/agones-images/release/agones-controller:1.46.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -17505,7 +17923,7 @@ spec: - name: MAX_PORT value: "8000" - name: SIDECAR_IMAGE # overwrite the GameServer sidecar image that is used - value: "us-docker.pkg.dev/agones-images/release/agones-sdk:1.45.0-dev" + value: "us-docker.pkg.dev/agones-images/release/agones-sdk:1.46.0-dev" - name: ALWAYS_PULL_SIDECAR # set the sidecar imagePullPolicy to Always value: "false" - name: SIDECAR_CPU_REQUEST @@ -17623,7 +18041,7 @@ metadata: labels: component: extensions app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17667,7 +18085,7 @@ spec: terminationGracePeriodSeconds: 27 containers: - name: agones-extensions - image: "us-docker.pkg.dev/agones-images/release/agones-extensions:1.45.0-dev" + image: "us-docker.pkg.dev/agones-images/release/agones-extensions:1.46.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -17777,7 +18195,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -17812,7 +18230,7 @@ spec: priorityClassName: agones-system containers: - name: agones-ping - image: "us-docker.pkg.dev/agones-images/release/agones-ping:1.45.0-dev" + image: "us-docker.pkg.dev/agones-images/release/agones-ping:1.46.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -17890,7 +18308,7 @@ spec: secretName: allocator-client-ca containers: - name: agones-allocator - image: "us-docker.pkg.dev/agones-images/release/agones-allocator:1.45.0-dev" + image: "us-docker.pkg.dev/agones-images/release/agones-allocator:1.46.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -17977,7 +18395,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm spec: @@ -18028,7 +18446,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm webhooks: @@ -18071,7 +18489,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm webhooks: @@ -18116,7 +18534,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.45.0-dev + chart: agones-1.46.0-dev release: agones-manual heritage: Helm webhooks: diff --git a/pkg/allocation/converters/converter.go b/pkg/allocation/converters/converter.go index 3673ebcd6d..b4b80cfc68 100644 --- a/pkg/allocation/converters/converter.go +++ b/pkg/allocation/converters/converter.go @@ -615,6 +615,12 @@ func convertAllocationListsToGSAListActions(in map[string]*pb.ListAction) map[st copy(copyValues, addValues) la.AddValues = copyValues } + if v.DeleteValues != nil { + deleteValues := v.GetDeleteValues() + copyValues := make([]string, len(deleteValues)) + copy(copyValues, deleteValues) + la.DeleteValues = copyValues + } if v.Capacity != nil { capacity := v.Capacity.GetValue() la.Capacity = &capacity @@ -639,6 +645,11 @@ func convertGSAListActionsToAllocationLists(in map[string]allocationv1.ListActio copy(copyValues, v.AddValues) la.AddValues = copyValues } + if v.DeleteValues != nil { + copyValues := make([]string, len(v.DeleteValues)) + copy(copyValues, v.DeleteValues) + la.DeleteValues = copyValues + } if v.Capacity != nil { la.Capacity = wrapperspb.Int64(*v.Capacity) } diff --git a/pkg/allocation/converters/converter_test.go b/pkg/allocation/converters/converter_test.go index 0de964807a..4a26e011fb 100644 --- a/pkg/allocation/converters/converter_test.go +++ b/pkg/allocation/converters/converter_test.go @@ -135,8 +135,9 @@ func TestConvertAllocationRequestToGameServerAllocation(t *testing.T) { }, Lists: map[string]*pb.ListAction{ "p": { - AddValues: []string{"foo", "bar", "baz"}, - Capacity: wrapperspb.Int64(10), + AddValues: []string{"foo", "bar", "baz"}, + Capacity: wrapperspb.Int64(10), + DeleteValues: []string{"alice", "bob", "cat"}, }, }, Scheduling: pb.AllocationRequest_Packed, @@ -217,8 +218,9 @@ func TestConvertAllocationRequestToGameServerAllocation(t *testing.T) { }, Lists: map[string]allocationv1.ListAction{ "p": { - AddValues: []string{"foo", "bar", "baz"}, - Capacity: &ten, + AddValues: []string{"foo", "bar", "baz"}, + Capacity: &ten, + DeleteValues: []string{"alice", "bob", "cat"}, }, }, Selectors: []allocationv1.GameServerSelector{ @@ -742,6 +744,9 @@ func TestConvertGSAToAllocationRequest(t *testing.T) { "d": { Capacity: &two, }, + "c": { + DeleteValues: []string{"good", "bye"}, + }, }, Scheduling: apis.Distributed, }, @@ -821,6 +826,9 @@ func TestConvertGSAToAllocationRequest(t *testing.T) { "d": { Capacity: wrapperspb.Int64(two), }, + "c": { + DeleteValues: []string{"good", "bye"}, + }, }, }, }, diff --git a/pkg/allocation/go/allocation.pb.go b/pkg/allocation/go/allocation.pb.go index 21b704134f..56264493df 100644 --- a/pkg/allocation/go/allocation.pb.go +++ b/pkg/allocation/go/allocation.pb.go @@ -30,7 +30,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v4.23.4 +// protoc v5.26.1 // source: proto/allocation/allocation.proto package allocation @@ -1096,13 +1096,15 @@ func (x *CounterAction) GetCapacity() *wrapperspb.Int64Value { // ListAction is an optional action that can be performed on a List at allocation. // AddValues: Append values to a List's Values array (optional). Any duplicate values will be ignored. // Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000. +// DeleteValues: Remove values from a List's Values array (optional). Any nonexistant values will be ignored. type ListAction struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AddValues []string `protobuf:"bytes,1,rep,name=addValues,proto3" json:"addValues,omitempty"` - Capacity *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=capacity,proto3" json:"capacity,omitempty"` + AddValues []string `protobuf:"bytes,1,rep,name=addValues,proto3" json:"addValues,omitempty"` + Capacity *wrapperspb.Int64Value `protobuf:"bytes,2,opt,name=capacity,proto3" json:"capacity,omitempty"` + DeleteValues []string `protobuf:"bytes,3,rep,name=deleteValues,proto3" json:"deleteValues,omitempty"` } func (x *ListAction) Reset() { @@ -1151,6 +1153,13 @@ func (x *ListAction) GetCapacity() *wrapperspb.Int64Value { return nil } +func (x *ListAction) GetDeleteValues() []string { + if x != nil { + return x.DeleteValues + } + return nil +} + // The gameserver port info that is allocated. type AllocationResponse_GameServerStatusPort struct { state protoimpl.MessageState @@ -1718,29 +1727,31 @@ var file_proto_allocation_allocation_proto_rawDesc = []byte{ 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, - 0x79, 0x22, 0x63, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, - 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x63, 0x61, - 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x32, 0x80, 0x01, 0x0a, 0x11, 0x41, 0x6c, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x08, - 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, - 0x15, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x6e, 0x5a, 0x0c, 0x2e, 0x2f, 0x61, - 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x92, 0x41, 0x5d, 0x12, 0x34, 0x0a, 0x21, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x32, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, - 0x65, 0x74, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x79, 0x22, 0x87, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, + 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x63, + 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x32, 0x80, 0x01, 0x0a, 0x11, + 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, + 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x6e, + 0x5a, 0x0c, 0x2e, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x92, 0x41, + 0x5d, 0x12, 0x34, 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, + 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x65, 0x74, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/allocation/go/allocation.pb.gw.go b/pkg/allocation/go/allocation.pb.gw.go index d26d021192..fcdfa97369 100644 --- a/pkg/allocation/go/allocation.pb.gw.go +++ b/pkg/allocation/go/allocation.pb.gw.go @@ -50,11 +50,7 @@ func request_AllocationService_Allocate_0(ctx context.Context, marshaler runtime var protoReq AllocationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -67,11 +63,7 @@ func local_request_AllocationService_Allocate_0(ctx context.Context, marshaler r var protoReq AllocationRequest var metadata runtime.ServerMetadata - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } @@ -124,14 +116,14 @@ func RegisterAllocationServiceHandlerFromEndpoint(ctx context.Context, mux *runt defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + grpclog.Errorf("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) + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) } }() }() diff --git a/pkg/allocation/go/allocation.swagger.json b/pkg/allocation/go/allocation.swagger.json index 48188ce2af..44bd8010cb 100644 --- a/pkg/allocation/go/allocation.swagger.json +++ b/pkg/allocation/go/allocation.swagger.json @@ -351,9 +351,15 @@ "capacity": { "type": "string", "format": "int64" + }, + "deleteValues": { + "type": "array", + "items": { + "type": "string" + } } }, - "description": "ListAction is an optional action that can be performed on a List at allocation.\nAddValues: Append values to a List's Values array (optional). Any duplicate values will be ignored.\nCapacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000." + "description": "ListAction is an optional action that can be performed on a List at allocation.\nAddValues: Append values to a List's Values array (optional). Any duplicate values will be ignored.\nCapacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000.\nDeleteValues: Remove values from a List's Values array (optional). Any nonexistant values will be ignored." }, "allocationListSelector": { "type": "object", diff --git a/pkg/allocation/go/allocation_grpc.pb.go b/pkg/allocation/go/allocation_grpc.pb.go index c0f8a3c37d..c9cdf05cce 100644 --- a/pkg/allocation/go/allocation_grpc.pb.go +++ b/pkg/allocation/go/allocation_grpc.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v4.23.4 +// - protoc v5.26.1 // source: proto/allocation/allocation.proto package allocation diff --git a/pkg/apis/agones/v1/gameserver.go b/pkg/apis/agones/v1/gameserver.go index b47c1492de..0f34a814d6 100644 --- a/pkg/apis/agones/v1/gameserver.go +++ b/pkg/apis/agones/v1/gameserver.go @@ -1026,6 +1026,37 @@ func (gs *GameServer) AppendListValues(name string, values []string) error { return errors.Errorf("unable to AppendListValues: Name %s, Values %s. List not found in GameServer %s", name, values, gs.ObjectMeta.GetName()) } +// DeleteListValues removes values from the ListStatus Values list. Values in the DeleteListValues +// list that are not in the ListStatus Values list are ignored. +func (gs *GameServer) DeleteListValues(name string, values []string) error { + if values == nil { + return errors.Errorf("unable to DeleteListValues: Name %s, Values %s. Values must not be nil", name, values) + } + if list, ok := gs.Status.Lists[name]; ok { + deleteValuesMap := make(map[string]bool) + for _, value := range values { + deleteValuesMap[value] = true + } + newList := deleteValues(list.Values, deleteValuesMap) + list.Values = newList + gs.Status.Lists[name] = list + return nil + } + return errors.Errorf("unable to DeleteListValues: Name %s, Values %s. List not found in GameServer %s", name, values, gs.ObjectMeta.GetName()) +} + +// deleteValues returns a new list with all the values in valuesList that are not keys in deleteValuesMap. +func deleteValues(valuesList []string, deleteValuesMap map[string]bool) []string { + newValuesList := []string{} + for _, value := range valuesList { + if _, ok := deleteValuesMap[value]; ok { + continue + } + newValuesList = append(newValuesList, value) + } + return newValuesList +} + // truncateList truncates the list to the given capacity func truncateList(capacity int64, list []string) []string { if list == nil || len(list) <= int(capacity) { diff --git a/pkg/apis/agones/v1/gameserver_test.go b/pkg/apis/agones/v1/gameserver_test.go index 4bedddef29..ac125cd14b 100644 --- a/pkg/apis/agones/v1/gameserver_test.go +++ b/pkg/apis/agones/v1/gameserver_test.go @@ -2223,6 +2223,63 @@ func TestGameServerAppendListValues(t *testing.T) { } } +func TestGameServerDeleteListValues(t *testing.T) { + t.Parallel() + + testCases := map[string]struct { + gs GameServer + name string + want ListStatus + values []string + wantErr bool + }{ + "list not in game server no-op and error": { + gs: GameServer{Status: GameServerStatus{ + Lists: map[string]ListStatus{ + "foos": { + Values: []string{"foo", "bar", "bax"}, + Capacity: 100, + }, + }, + }}, + name: "foo", + values: []string{"bar", "baz"}, + wantErr: true, + }, + "delete list value - one value not present": { + gs: GameServer{Status: GameServerStatus{ + Lists: map[string]ListStatus{ + "foo": { + Values: []string{"foo", "bar", "bax"}, + Capacity: 100, + }, + }, + }}, + name: "foo", + values: []string{"bar", "baz"}, + wantErr: false, + want: ListStatus{ + Values: []string{"foo", "bax"}, + Capacity: 100, + }, + }, + } + + for test, testCase := range testCases { + t.Run(test, func(t *testing.T) { + err := testCase.gs.DeleteListValues(testCase.name, testCase.values) + if err != nil { + assert.True(t, testCase.wantErr) + } else { + assert.False(t, testCase.wantErr) + } + if list, ok := testCase.gs.Status.Lists[testCase.name]; ok { + assert.Equal(t, testCase.want, list) + } + }) + } +} + func TestMergeRemoveDuplicates(t *testing.T) { t.Parallel() diff --git a/pkg/apis/allocation/v1/gameserverallocation.go b/pkg/apis/allocation/v1/gameserverallocation.go index 2e92775811..5f12b38e5e 100644 --- a/pkg/apis/allocation/v1/gameserverallocation.go +++ b/pkg/apis/allocation/v1/gameserverallocation.go @@ -209,6 +209,9 @@ type ListAction struct { // AddValues appends values to a List's Values array. Any duplicate values will be ignored. // +optional AddValues []string `json:"addValues,omitempty"` + // DeleteValues removes values from a List's Values array. Any nonexistant values will be ignored. + // +optional + DeleteValues []string `json:"deleteValues,omitempty"` // Capacity updates the maximum capacity of the Counter to this number. Min 0, Max 1000. // +optional Capacity *int64 `json:"capacity,omitempty"` @@ -349,6 +352,12 @@ func (la *ListAction) ListActions(list string, gs *agonesv1.GameServer) error { errs = errors.Join(errs, cntErr) } } + if len(la.DeleteValues) > 0 { + cntErr := gs.DeleteListValues(list, la.DeleteValues) + if cntErr != nil { + errs = errors.Join(errs, cntErr) + } + } return errs } diff --git a/pkg/apis/allocation/v1/gameserverallocation_test.go b/pkg/apis/allocation/v1/gameserverallocation_test.go index c7304db2a5..f1f709a812 100644 --- a/pkg/apis/allocation/v1/gameserverallocation_test.go +++ b/pkg/apis/allocation/v1/gameserverallocation_test.go @@ -1019,20 +1019,21 @@ func TestGameServerListActions(t *testing.T) { }, "update list values and capacity": { la: ListAction{ - AddValues: []string{"magician1", "magician3"}, - Capacity: int64Pointer(42), + AddValues: []string{"magician1", "magician3"}, + Capacity: int64Pointer(42), + DeleteValues: []string{"magician2", "magician5", "magician6"}, }, list: "magicians", gs: &agonesv1.GameServer{Status: agonesv1.GameServerStatus{ Lists: map[string]agonesv1.ListStatus{ "magicians": { - Values: []string{"magician1", "magician2"}, + Values: []string{"magician1", "magician2", "magician4", "magician5"}, Capacity: 100, }}}}, want: &agonesv1.GameServer{Status: agonesv1.GameServerStatus{ Lists: map[string]agonesv1.ListStatus{ "magicians": { - Values: []string{"magician1", "magician2", "magician3"}, + Values: []string{"magician1", "magician4", "magician3"}, Capacity: 42, }}}}, wantErr: false, @@ -1263,7 +1264,8 @@ func TestValidateListActions(t *testing.T) { Capacity: int64Pointer(0), }, "baz": { - AddValues: []string{}, + AddValues: []string{}, + DeleteValues: []string{"good", "bye"}, }, }, wantErr: false, diff --git a/pkg/apis/allocation/v1/zz_generated.deepcopy.go b/pkg/apis/allocation/v1/zz_generated.deepcopy.go index 5063ad1506..e789611647 100644 --- a/pkg/apis/allocation/v1/zz_generated.deepcopy.go +++ b/pkg/apis/allocation/v1/zz_generated.deepcopy.go @@ -311,6 +311,11 @@ func (in *ListAction) DeepCopyInto(out *ListAction) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.DeleteValues != nil { + in, out := &in.DeleteValues, &out.DeleteValues + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity *out = new(int64) diff --git a/pkg/fleetautoscalers/fleetautoscalers.go b/pkg/fleetautoscalers/fleetautoscalers.go index 9b29913544..e489eee3e8 100644 --- a/pkg/fleetautoscalers/fleetautoscalers.go +++ b/pkg/fleetautoscalers/fleetautoscalers.go @@ -364,7 +364,7 @@ func applyCounterOrListPolicy(c *autoscalingv1.CounterPolicy, l *autoscalingv1.L } return replicas, false, nil case availableCapacity < buffer: // Scale Up - if limited && scale == -1 { // Case where we want to scale up but we're already limited by MaxCapacity + if limited { // Case where we want to scale up but we're already limited by MaxCapacity. return scaleLimited(scale, f, gameServerLister, nodeCounts, key, isCounter, replicas, capacity, aggCapacity, minCapacity, maxCapacity) } diff --git a/pkg/fleetautoscalers/fleetautoscalers_test.go b/pkg/fleetautoscalers/fleetautoscalers_test.go index dc7fa6640e..1e9b854b55 100644 --- a/pkg/fleetautoscalers/fleetautoscalers_test.go +++ b/pkg/fleetautoscalers/fleetautoscalers_test.go @@ -817,6 +817,31 @@ func TestApplyCounterPolicy(t *testing.T) { wantErr: true, }, }, + "Counter based fleet does not have any replicas": { + fleet: modifiedFleet(func(f *agonesv1.Fleet) { + f.Spec.Template.Spec.Counters = make(map[string]agonesv1.CounterStatus) + f.Spec.Template.Spec.Counters["gamers"] = agonesv1.CounterStatus{ + Count: 0, + Capacity: 7} + f.Status.Replicas = 0 + f.Status.ReadyReplicas = 0 + f.Status.AllocatedReplicas = 0 + f.Status.Counters = make(map[string]agonesv1.AggregatedCounterStatus) + f.Status.Counters["gamers"] = agonesv1.AggregatedCounterStatus{} + }), + featureFlags: string(utilruntime.FeatureCountsAndLists) + "=true", + cp: &autoscalingv1.CounterPolicy{ + Key: "gamers", + MaxCapacity: 100, + MinCapacity: 10, + BufferSize: intstr.FromInt(10), + }, + want: expected{ + replicas: 2, + limited: true, + wantErr: false, + }, + }, "fleet spec does not have counter": { fleet: modifiedFleet(func(f *agonesv1.Fleet) { f.Spec.Template.Spec.Counters = make(map[string]agonesv1.CounterStatus) @@ -1615,6 +1640,31 @@ func TestApplyListPolicy(t *testing.T) { wantErr: true, }, }, + "List based fleet does not have any replicas": { + fleet: modifiedFleet(func(f *agonesv1.Fleet) { + f.Spec.Template.Spec.Lists = make(map[string]agonesv1.ListStatus) + f.Spec.Template.Spec.Lists["gamers"] = agonesv1.ListStatus{ + Values: []string{}, + Capacity: 7} + f.Status.Replicas = 0 + f.Status.ReadyReplicas = 0 + f.Status.AllocatedReplicas = 0 + f.Status.Lists = make(map[string]agonesv1.AggregatedListStatus) + f.Status.Lists["gamers"] = agonesv1.AggregatedListStatus{} + }), + featureFlags: string(utilruntime.FeatureCountsAndLists) + "=true", + lp: &autoscalingv1.ListPolicy{ + Key: "gamers", + MaxCapacity: 100, + MinCapacity: 10, + BufferSize: intstr.FromInt(10), + }, + want: expected{ + replicas: 2, + limited: true, + wantErr: false, + }, + }, "scale up": { fleet: modifiedFleet(func(f *agonesv1.Fleet) { f.Spec.Template.Spec.Lists = make(map[string]agonesv1.ListStatus) diff --git a/pkg/gameserverallocations/allocator_test.go b/pkg/gameserverallocations/allocator_test.go index 457baddedc..af0434de11 100644 --- a/pkg/gameserverallocations/allocator_test.go +++ b/pkg/gameserverallocations/allocator_test.go @@ -309,7 +309,7 @@ func TestAllocatorApplyAllocationToGameServerCountsListsActions(t *testing.T) { Status: agonesv1.GameServerStatus{NodeName: "node1", State: agonesv1.GameServerStateReady, Lists: map[string]agonesv1.ListStatus{ "players": { - Values: []string{}, + Values: []string{"alice", "bob", "cat"}, Capacity: 100, }, }, @@ -339,7 +339,7 @@ func TestAllocatorApplyAllocationToGameServerCountsListsActions(t *testing.T) { wantCounters map[string]agonesv1.CounterStatus wantLists map[string]agonesv1.ListStatus }{ - "CounterActions increment and ListActions append and update capacity": { + "CounterActions increment and ListActions add, delete, and update capacity": { features: fmt.Sprintf("%s=true", runtime.FeatureCountsAndLists), gs: &gs1, gsa: &allocationv1.GameServerAllocation{ @@ -356,8 +356,9 @@ func TestAllocatorApplyAllocationToGameServerCountsListsActions(t *testing.T) { }}, Lists: map[string]allocationv1.ListAction{ "players": { - AddValues: []string{"x7un", "8inz"}, - Capacity: &FORTY, + AddValues: []string{"x7un", "8inz"}, + Capacity: &FORTY, + DeleteValues: []string{"bob"}, }}}}, wantCounters: map[string]agonesv1.CounterStatus{ "rooms": { @@ -366,7 +367,7 @@ func TestAllocatorApplyAllocationToGameServerCountsListsActions(t *testing.T) { }}, wantLists: map[string]agonesv1.ListStatus{ "players": { - Values: []string{"x7un", "8inz"}, + Values: []string{"alice", "cat", "x7un", "8inz"}, Capacity: 40, }}, }, diff --git a/pkg/gameserversets/controller.go b/pkg/gameserversets/controller.go index 4292f886e4..0feef01729 100644 --- a/pkg/gameserversets/controller.go +++ b/pkg/gameserversets/controller.go @@ -320,7 +320,7 @@ func (c *Controller) syncGameServerSet(ctx context.Context, key string) error { numServersToAdd = 0 } - status := computeStatus(list) + status := computeStatus(gsSet, list) fields := logrus.Fields{} for _, gs := range list { @@ -616,7 +616,7 @@ func parallelize(gameServers chan *agonesv1.GameServer, parallelism int, work fu // syncGameServerSetStatus synchronises the GameServerSet State with active GameServer counts func (c *Controller) syncGameServerSetStatus(ctx context.Context, gsSet *agonesv1.GameServerSet, list []*agonesv1.GameServer) error { - return c.updateStatusIfChanged(ctx, gsSet, computeStatus(list)) + return c.updateStatusIfChanged(ctx, gsSet, computeStatus(gsSet, list)) } // updateStatusIfChanged updates GameServerSet status if it's different than provided. @@ -633,8 +633,14 @@ func (c *Controller) updateStatusIfChanged(ctx context.Context, gsSet *agonesv1. } // computeStatus computes the status of the game server set. -func computeStatus(list []*agonesv1.GameServer) agonesv1.GameServerSetStatus { +func computeStatus(gsSet *agonesv1.GameServerSet, list []*agonesv1.GameServer) agonesv1.GameServerSetStatus { var status agonesv1.GameServerSetStatus + + // Initialize list status with empty lists from spec + if runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { + status.Lists = createInitialListStatus(gsSet) + status.Counters = createInitialCounterStatus(gsSet) + } for _, gs := range list { if gs.IsBeingDeleted() { // don't count GS that are being deleted @@ -687,6 +693,22 @@ func computeStatus(list []*agonesv1.GameServer) agonesv1.GameServerSetStatus { return status } +func createInitialListStatus(gsSet *agonesv1.GameServerSet) map[string]agonesv1.AggregatedListStatus { + list := make(map[string]agonesv1.AggregatedListStatus) + for name := range gsSet.Spec.Template.Spec.Lists { + list[name] = agonesv1.AggregatedListStatus{} + } + return list +} + +func createInitialCounterStatus(gsSet *agonesv1.GameServerSet) map[string]agonesv1.AggregatedCounterStatus { + counters := make(map[string]agonesv1.AggregatedCounterStatus) + for name := range gsSet.Spec.Template.Spec.Counters { + counters[name] = agonesv1.AggregatedCounterStatus{} + } + return counters +} + // aggregateCounters adds the contents of a CounterStatus map to an AggregatedCounterStatus map. func aggregateCounters(aggCounterStatus map[string]agonesv1.AggregatedCounterStatus, counterStatus map[string]agonesv1.CounterStatus, diff --git a/pkg/gameserversets/controller_test.go b/pkg/gameserversets/controller_test.go index c3c86d9616..d7fe7a2395 100644 --- a/pkg/gameserversets/controller_test.go +++ b/pkg/gameserversets/controller_test.go @@ -283,7 +283,7 @@ func TestComputeStatus(t *testing.T) { defer utilruntime.FeatureTestMutex.Unlock() require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=false", utilruntime.FeatureCountsAndLists))) - + gsSet := defaultFixture() cases := []struct { list []*agonesv1.GameServer wantStatus agonesv1.GameServerSetStatus @@ -310,7 +310,7 @@ func TestComputeStatus(t *testing.T) { } for _, tc := range cases { - assert.Equal(t, tc.wantStatus, computeStatus(tc.list)) + assert.Equal(t, tc.wantStatus, computeStatus(gsSet, tc.list)) } }) @@ -320,6 +320,7 @@ func TestComputeStatus(t *testing.T) { require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=true", utilruntime.FeaturePlayerTracking))) + gsSet := defaultFixture() var list []*agonesv1.GameServer gs1 := gsWithState(agonesv1.GameServerStateAllocated) gs1.Status.Players = &agonesv1.PlayerStatus{Count: 5, Capacity: 10} @@ -344,7 +345,7 @@ func TestComputeStatus(t *testing.T) { Lists: map[string]agonesv1.AggregatedListStatus{}, } - assert.Equal(t, expected, computeStatus(list)) + assert.Equal(t, expected, computeStatus(gsSet, list)) }) t.Run("counters", func(t *testing.T) { @@ -353,6 +354,7 @@ func TestComputeStatus(t *testing.T) { require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=true", utilruntime.FeatureCountsAndLists))) + gsSet := defaultFixture() var list []*agonesv1.GameServer gs1 := gsWithState(agonesv1.GameServerStateAllocated) gs1.Status.Counters = map[string]agonesv1.CounterStatus{ @@ -407,7 +409,45 @@ func TestComputeStatus(t *testing.T) { Lists: map[string]agonesv1.AggregatedListStatus{}, } - assert.Equal(t, expected, computeStatus(list)) + assert.Equal(t, expected, computeStatus(gsSet, list)) + }) + + t.Run("counters with no gameservers", func(t *testing.T) { + utilruntime.FeatureTestMutex.Lock() + defer utilruntime.FeatureTestMutex.Unlock() + + require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=true", utilruntime.FeatureCountsAndLists))) + + gsSet := defaultFixture() + gsSet.Spec.Template.Spec.Counters = map[string]agonesv1.CounterStatus{ + "firstCounter": {Capacity: 10, Count: 1}, + "secondCounter": {Capacity: 10, Count: 1}, + } + var list []*agonesv1.GameServer + + expected := agonesv1.GameServerSetStatus{ + Replicas: 0, + ReadyReplicas: 0, + ReservedReplicas: 0, + AllocatedReplicas: 0, + Lists: map[string]agonesv1.AggregatedListStatus{}, + Counters: map[string]agonesv1.AggregatedCounterStatus{ + "firstCounter": { + AllocatedCount: 0, + AllocatedCapacity: 0, + Capacity: 0, + Count: 0, + }, + "secondCounter": { + AllocatedCount: 0, + AllocatedCapacity: 0, + Capacity: 0, + Count: 0, + }, + }, + } + + assert.Equal(t, expected, computeStatus(gsSet, list)) }) t.Run("lists", func(t *testing.T) { @@ -416,6 +456,7 @@ func TestComputeStatus(t *testing.T) { require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=true", utilruntime.FeatureCountsAndLists))) + gsSet := defaultFixture() var list []*agonesv1.GameServer gs1 := gsWithState(agonesv1.GameServerStateAllocated) gs1.Status.Lists = map[string]agonesv1.ListStatus{ @@ -460,7 +501,45 @@ func TestComputeStatus(t *testing.T) { }, } - assert.Equal(t, expected, computeStatus(list)) + assert.Equal(t, expected, computeStatus(gsSet, list)) + }) + + t.Run("lists with no gameservers", func(t *testing.T) { + utilruntime.FeatureTestMutex.Lock() + defer utilruntime.FeatureTestMutex.Unlock() + + require.NoError(t, utilruntime.ParseFeatures(fmt.Sprintf("%s=true", utilruntime.FeatureCountsAndLists))) + + gsSet := defaultFixture() + gsSet.Spec.Template.Spec.Lists = map[string]agonesv1.ListStatus{ + "firstList": {Capacity: 10, Values: []string{"a", "b"}}, + "secondList": {Capacity: 1000, Values: []string{"1", "2"}}, + } + var list []*agonesv1.GameServer + + expected := agonesv1.GameServerSetStatus{ + Replicas: 0, + ReadyReplicas: 0, + ReservedReplicas: 0, + AllocatedReplicas: 0, + Counters: map[string]agonesv1.AggregatedCounterStatus{}, + Lists: map[string]agonesv1.AggregatedListStatus{ + "firstList": { + AllocatedCount: 0, + AllocatedCapacity: 0, + Capacity: 0, + Count: 0, + }, + "secondList": { + AllocatedCount: 0, + AllocatedCapacity: 0, + Capacity: 0, + Count: 0, + }, + }, + } + + assert.Equal(t, expected, computeStatus(gsSet, list)) }) } diff --git a/pkg/metrics/controller.go b/pkg/metrics/controller.go index 887e105ae0..7b3c7421d1 100644 --- a/pkg/metrics/controller.go +++ b/pkg/metrics/controller.go @@ -28,6 +28,7 @@ import ( "agones.dev/agones/pkg/client/informers/externalversions" listerv1 "agones.dev/agones/pkg/client/listers/agones/v1" autoscalinglisterv1 "agones.dev/agones/pkg/client/listers/autoscaling/v1" + fleetsv1 "agones.dev/agones/pkg/fleets" "agones.dev/agones/pkg/util/runtime" lru "github.com/hashicorp/golang-lru" "github.com/pkg/errors" @@ -35,6 +36,7 @@ import ( "go.opencensus.io/stats" "go.opencensus.io/tag" corev1 "k8s.io/api/core/v1" + apiequality "k8s.io/apimachinery/pkg/api/equality" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/util/wait" @@ -77,6 +79,7 @@ type Controller struct { gameServerSynced cache.InformerSynced fleetSynced cache.InformerSynced fleetLister listerv1.FleetLister + gameServerSetLister listerv1.GameServerSetLister fasSynced cache.InformerSynced fasLister autoscalinglisterv1.FleetAutoscalerLister lock sync.Mutex @@ -103,6 +106,8 @@ func NewController( fasInformer := fas.Informer() node := kubeInformerFactory.Core().V1().Nodes() + gameServerSets := agonesInformerFactory.Agones().V1().GameServerSets() + // GameServerStateLastChange Contains the time when the GameServer // changed its state last time // on delete and state change remove GameServerName key @@ -117,6 +122,7 @@ func NewController( gameServerSynced: gsInformer.HasSynced, fleetSynced: fInformer.HasSynced, fleetLister: fleets.Lister(), + gameServerSetLister: gameServerSets.Lister(), fasSynced: fasInformer.HasSynced, fasLister: fas.Lister(), gsCount: GameServerCount{}, @@ -240,6 +246,8 @@ func (c *Controller) recordFleetChanges(obj interface{}) { c.recordFleetReplicas(f.Name, f.Namespace, f.Status.Replicas, f.Status.AllocatedReplicas, f.Status.ReadyReplicas, f.Spec.Replicas, f.Status.ReservedReplicas) + c.recordFleetRolloutPercentage(f) + if runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { if f.Status.Counters != nil { c.recordCounters(f.Name, f.Namespace, f.Status.Counters) @@ -250,6 +258,53 @@ func (c *Controller) recordFleetChanges(obj interface{}) { } } +func (c *Controller) recordFleetRolloutPercentage(fleet *agonesv1.Fleet) { + list, err := fleetsv1.ListGameServerSetsByFleetOwner(c.gameServerSetLister, fleet) + if err != nil { + c.logger.Errorf("Error listing GameServerSets for fleet %s in namespace %s: %v", fleet.Name, fleet.Namespace, err.Error()) + return + } + + active, _ := c.filterGameServerSetByActive(fleet, list) + + if active == nil { + fleetName := fleet.ObjectMeta.Namespace + "/" + fleet.ObjectMeta.Name + c.logger.Debugf("Could not find active GameServerSet %s", fleetName) + active = fleet.GameServerSet() + } + + currentReplicas := active.Status.Replicas + desiredReplicas := fleet.Spec.Replicas + + ctx, _ := tag.New(context.Background(), tag.Upsert(keyName, fleet.Name), tag.Upsert(keyNamespace, fleet.GetNamespace())) + + // Record current replicas count + RecordWithTags(ctx, []tag.Mutator{tag.Upsert(keyType, "current_replicas")}, + fleetRolloutPercentStats.M(int64(currentReplicas))) + + // Record desired replicas count + RecordWithTags(ctx, []tag.Mutator{tag.Upsert(keyType, "desired_replicas")}, + fleetRolloutPercentStats.M(int64(desiredReplicas))) +} + +// filterGameServerSetByActive returns the active GameServerSet (or nil if it +// doesn't exist) and then the rest of the GameServerSets that are controlled +// by this Fleet +func (c *Controller) filterGameServerSetByActive(fleet *agonesv1.Fleet, list []*agonesv1.GameServerSet) (*agonesv1.GameServerSet, []*agonesv1.GameServerSet) { + var active *agonesv1.GameServerSet + var rest []*agonesv1.GameServerSet + + for _, gsSet := range list { + if apiequality.Semantic.DeepEqual(gsSet.Spec.Template, fleet.Spec.Template) { + active = gsSet + } else { + rest = append(rest, gsSet) + } + } + + return active, rest +} + func (c *Controller) recordFleetDeletion(obj interface{}) { _, ok := obj.(*agonesv1.Fleet) if !ok { diff --git a/pkg/metrics/controller_metrics.go b/pkg/metrics/controller_metrics.go index 4aee96c741..22bf46defc 100644 --- a/pkg/metrics/controller_metrics.go +++ b/pkg/metrics/controller_metrics.go @@ -21,6 +21,7 @@ import ( ) const ( + fleetRolloutPercent = "fleet_rollout_percent" fleetReplicaCountName = "fleets_replicas_count" fleetAutoscalerBufferLimitName = "fleet_autoscalers_buffer_limits" fleetAutoscalterBufferSizeName = "fleet_autoscalers_buffer_size" @@ -44,9 +45,10 @@ var ( fleetAutoscalerViews = []string{fleetAutoscalerBufferLimitName, fleetAutoscalterBufferSizeName, fleetAutoscalerCurrentReplicaCountName, fleetAutoscalersDesiredReplicaCountName, fleetAutoscalersAbleToScaleName, fleetAutoscalersLimitedName} // fleetViews are metric views associated with Fleets - fleetViews = append([]string{fleetReplicaCountName, gameServersCountName, gameServersTotalName, gameServersPlayerConnectedTotalName, gameServersPlayerCapacityTotalName, gameServerStateDurationName, fleetCountersName, fleetListsName}, fleetAutoscalerViews...) + fleetViews = append([]string{fleetRolloutPercent, fleetReplicaCountName, gameServersCountName, gameServersTotalName, gameServersPlayerConnectedTotalName, gameServersPlayerCapacityTotalName, gameServerStateDurationName, fleetCountersName, fleetListsName}, fleetAutoscalerViews...) stateDurationSeconds = []float64{0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384} + fleetRolloutPercentStats = stats.Int64("fleets/rollout_percent", "The current fleet rollout percentage", "1") fleetsReplicasCountStats = stats.Int64("fleets/replicas_count", "The count of replicas per fleet", "1") fasBufferLimitsCountStats = stats.Int64("fas/buffer_limits", "The buffer limits of autoscalers", "1") fasBufferSizeStats = stats.Int64("fas/buffer_size", "The buffer size value of autoscalers", "1") @@ -65,6 +67,13 @@ var ( gsStateDurationSec = stats.Float64("gameservers_state/duration", "The duration of gameservers to be in a particular state", stats.UnitSeconds) stateViews = []*view.View{ + { + Name: fleetRolloutPercent, + Measure: fleetRolloutPercentStats, + Description: "Measures the current progress of fleet rollout", + Aggregation: view.LastValue(), + TagKeys: []tag.Key{keyName, keyType, keyNamespace}, + }, { Name: fleetReplicaCountName, Measure: fleetsReplicasCountStats, diff --git a/pkg/sdk/alpha/alpha.pb.go b/pkg/sdk/alpha/alpha.pb.go index ae663a9b13..83562ccaa9 100644 --- a/pkg/sdk/alpha/alpha.pb.go +++ b/pkg/sdk/alpha/alpha.pb.go @@ -30,7 +30,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v4.23.4 +// protoc v5.26.1 // source: alpha.proto package alpha diff --git a/pkg/sdk/alpha/alpha.pb.gw.go b/pkg/sdk/alpha/alpha.pb.gw.go index c293c421a7..b639b1d7d6 100644 --- a/pkg/sdk/alpha/alpha.pb.gw.go +++ b/pkg/sdk/alpha/alpha.pb.gw.go @@ -417,8 +417,7 @@ func RegisterSDKHandlerServer(ctx context.Context, mux *runtime.ServeMux, server // RegisterSDKHandlerFromEndpoint is same as RegisterSDKHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSDKHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - // nolint: staticcheck - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } diff --git a/pkg/sdk/alpha/alpha_grpc.pb.go b/pkg/sdk/alpha/alpha_grpc.pb.go index 153e95860b..e8ffba1cac 100644 --- a/pkg/sdk/alpha/alpha_grpc.pb.go +++ b/pkg/sdk/alpha/alpha_grpc.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v4.23.4 +// - protoc v5.26.1 // source: alpha.proto package alpha diff --git a/pkg/sdk/beta/beta.pb.go b/pkg/sdk/beta/beta.pb.go index 5c7bb10c75..4cb8520cc2 100644 --- a/pkg/sdk/beta/beta.pb.go +++ b/pkg/sdk/beta/beta.pb.go @@ -30,7 +30,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v4.23.4 +// protoc v5.26.1 // source: beta.proto package beta @@ -666,113 +666,114 @@ var file_beta_proto_rawDesc = []byte{ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x7d, 0x22, 0x43, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x14, - 0x0a, 0x12, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x14, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x86, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x27, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x04, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, - 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, - 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x3a, 0x22, 0xea, 0x41, - 0x1f, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6c, 0x69, 0x73, 0x74, 0x7d, - 0x22, 0x3d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x17, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x9d, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x17, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, - 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x40, 0x0a, - 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, - 0x5d, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x60, - 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x17, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, - 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x32, 0xcb, 0x06, 0x0a, 0x03, 0x53, 0x44, 0x4b, 0x12, 0x7b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, - 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x27, 0x82, 0xd3, + 0x75, 0x65, 0x73, 0x74, 0x7d, 0x22, 0x44, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1b, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, + 0x14, 0x0a, 0x12, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x14, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, + 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, + 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x28, + 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, + 0x64, 0x65, 0x76, 0x2f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, + 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x72, + 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, + 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x61, + 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x3a, 0x22, + 0xea, 0x41, 0x1f, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6c, 0x69, 0x73, + 0x74, 0x7d, 0x22, 0x3e, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x18, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, + 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, + 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x42, 0x18, 0xe2, 0x41, 0x01, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, + 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, + 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, + 0x73, 0x6b, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x5f, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xe2, 0x41, 0x01, 0x02, 0xfa, + 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x62, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xe2, + 0x41, 0x01, 0x02, 0xfa, 0x41, 0x11, 0x0a, 0x0f, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, + 0x01, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xcb, 0x06, 0x0a, 0x03, 0x53, 0x44, + 0x4b, 0x12, 0x7b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, + 0x26, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, + 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, + 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x27, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0xda, 0x41, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbc, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, - 0x22, 0x62, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x32, 0x2d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xbc, + 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x12, 0x29, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, + 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x67, + 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, + 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x62, 0xda, 0x41, 0x14, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x32, 0x2d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0xda, 0x41, 0x14, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x23, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, - 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x22, - 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0xda, 0x41, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x8c, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, - 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, - 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x32, - 0x1a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, - 0x7b, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x04, 0x6c, 0x69, 0x73, - 0x74, 0xda, 0x41, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x12, 0x7e, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x64, 0x64, 0x4c, 0x69, - 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, - 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x87, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, - 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, + 0x07, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, + 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, + 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, + 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x24, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x8c, + 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, + 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, + 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, - 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x51, - 0x5a, 0x06, 0x2e, 0x2f, 0x62, 0x65, 0x74, 0x61, 0x92, 0x41, 0x46, 0x12, 0x1d, 0x0a, 0x0a, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x73, 0x65, 0x74, 0x2a, 0x01, 0x01, 0x32, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x3b, 0xda, 0x41, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x32, 0x1a, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6c, 0x69, 0x73, + 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x7e, 0x0a, + 0x0c, 0x41, 0x64, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x2e, + 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, + 0x65, 0x74, 0x61, 0x2e, 0x41, 0x64, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, + 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x87, 0x01, + 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x2b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, + 0x64, 0x6b, 0x2e, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, + 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, + 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x26, 0x22, 0x21, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6c, 0x69, 0x73, 0x74, + 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x51, 0x5a, 0x06, 0x2e, 0x2f, 0x62, 0x65, 0x74, + 0x61, 0x92, 0x41, 0x46, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x32, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6e, 0x6f, 0x74, 0x20, + 0x73, 0x65, 0x74, 0x2a, 0x01, 0x01, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/pkg/sdk/beta/beta.pb.gw.go b/pkg/sdk/beta/beta.pb.gw.go index 625028c0e9..2f4c5aedb3 100644 --- a/pkg/sdk/beta/beta.pb.gw.go +++ b/pkg/sdk/beta/beta.pb.gw.go @@ -592,8 +592,7 @@ func RegisterSDKHandlerServer(ctx context.Context, mux *runtime.ServeMux, server // RegisterSDKHandlerFromEndpoint is same as RegisterSDKHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSDKHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - // nolint: staticcheck - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } diff --git a/pkg/sdk/beta/beta_grpc.pb.go b/pkg/sdk/beta/beta_grpc.pb.go index 889552efe9..54a4675326 100644 --- a/pkg/sdk/beta/beta_grpc.pb.go +++ b/pkg/sdk/beta/beta_grpc.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v4.23.4 +// - protoc v5.26.1 // source: beta.proto package beta diff --git a/pkg/sdk/sdk.pb.go b/pkg/sdk/sdk.pb.go index 41372a607e..3d69fac366 100644 --- a/pkg/sdk/sdk.pb.go +++ b/pkg/sdk/sdk.pb.go @@ -30,7 +30,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v4.23.4 +// protoc v5.26.1 // source: sdk.proto package sdk diff --git a/pkg/sdk/sdk.pb.gw.go b/pkg/sdk/sdk.pb.gw.go index e859542a17..a5e5b65e74 100644 --- a/pkg/sdk/sdk.pb.gw.go +++ b/pkg/sdk/sdk.pb.gw.go @@ -482,8 +482,7 @@ func RegisterSDKHandlerServer(ctx context.Context, mux *runtime.ServeMux, server // RegisterSDKHandlerFromEndpoint is same as RegisterSDKHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterSDKHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - // nolint: staticcheck - conn, err := grpc.DialContext(ctx, endpoint, opts...) + conn, err := grpc.NewClient(endpoint, opts...) if err != nil { return err } diff --git a/pkg/sdk/sdk_grpc.pb.go b/pkg/sdk/sdk_grpc.pb.go index 96cea069e3..49b917ad3e 100644 --- a/pkg/sdk/sdk_grpc.pb.go +++ b/pkg/sdk/sdk_grpc.pb.go @@ -16,7 +16,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v4.23.4 +// - protoc v5.26.1 // source: sdk.proto package sdk diff --git a/proto/allocation/allocation.proto b/proto/allocation/allocation.proto index 58d249eb11..8ef8111fe4 100644 --- a/proto/allocation/allocation.proto +++ b/proto/allocation/allocation.proto @@ -90,12 +90,12 @@ message AllocationRequest { // // For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the // order that `GameServers` will be allocated by. - repeated Priority priorities = 9; + repeated Priority priorities = 9; // [Stage: Beta] // [FeatureFlag:CountsAndLists] // Counters and Lists provide a set of actions to perform - // on Counters and Lists during allocation. + // on Counters and Lists during allocation. map counters = 10; map lists = 11; } @@ -191,10 +191,10 @@ message PlayerSelector { // CounterSelector is the filter options for a GameServer based on the count and/or available capacity. // 0 for MaxCount or MaxAvailable means unlimited maximum. Default for all fields: 0 message CounterSelector { - int64 minCount = 1; - int64 maxCount = 2; - int64 minAvailable = 3; - int64 maxAvailable = 4; + int64 minCount = 1; + int64 maxCount = 2; + int64 minAvailable = 3; + int64 maxAvailable = 4; } // ListSelector is the filter options for a GameServer based on List available capacity and/or the @@ -202,9 +202,9 @@ message CounterSelector { // 0 for MaxAvailable means unlimited maximum. Default for integer fields: 0 // "" for ContainsValue means ignore field. Default for string field: "" message ListSelector { - string containsValue = 1; - int64 minAvailable = 2; - int64 maxAvailable = 3; + string containsValue = 1; + int64 minAvailable = 2; + int64 maxAvailable = 3; } // Priority is a sorting option for GameServers with Counters or Lists based on the Capacity. @@ -232,14 +232,16 @@ message Priority { // Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max int64. message CounterAction { google.protobuf.StringValue action = 1; - google.protobuf.Int64Value amount = 2; - google.protobuf.Int64Value capacity = 3; + google.protobuf.Int64Value amount = 2; + google.protobuf.Int64Value capacity = 3; } // ListAction is an optional action that can be performed on a List at allocation. // AddValues: Append values to a List's Values array (optional). Any duplicate values will be ignored. // Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000. +// DeleteValues: Remove values from a List's Values array (optional). Any nonexistant values will be ignored. message ListAction { - repeated string addValues = 1; - google.protobuf.Int64Value capacity = 2; + repeated string addValues = 1; + google.protobuf.Int64Value capacity = 2; + repeated string deleteValues = 3; } diff --git a/sdks/cpp/include/agones/sdk.pb.h b/sdks/cpp/include/agones/sdk.pb.h index 03f85b97a3..f86e4ba680 100644 --- a/sdks/cpp/include/agones/sdk.pb.h +++ b/sdks/cpp/include/agones/sdk.pb.h @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: sdk.proto +// Protobuf C++ Version: 5.26.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_sdk_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_sdk_2eproto_2epb_2eh @@ -22,24 +23,20 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 -#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 // PROTOBUF_VERSION - -#if 4023004 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" #include "google/protobuf/generated_message_bases.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -59,17 +56,19 @@ #define PROTOBUF_INTERNAL_EXPORT_sdk_2eproto AGONES_EXPORT -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct AGONES_EXPORT TableStruct_sdk_2eproto { static const ::uint32_t offsets[]; }; -AGONES_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_sdk_2eproto; namespace agones { namespace dev { @@ -128,42 +127,10 @@ AGONES_EXPORT extern KeyValueDefaultTypeInternal _KeyValue_default_instance_; } // namespace sdk } // namespace dev } // namespace agones -PROTOBUF_NAMESPACE_OPEN -template <> -AGONES_EXPORT ::agones::dev::sdk::Duration* Arena::CreateMaybeMessage<::agones::dev::sdk::Duration>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::Empty* Arena::CreateMaybeMessage<::agones::dev::sdk::Empty>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_ObjectMeta* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Spec* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Spec_Health* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec_Health>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_Address* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_Address>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_CounterStatus* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_CounterStatus>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_ListStatus* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_ListStatus>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_PlayerStatus* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_PlayerStatus>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::GameServer_Status_Port* Arena::CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_Port>(Arena*); -template <> -AGONES_EXPORT ::agones::dev::sdk::KeyValue* Arena::CreateMaybeMessage<::agones::dev::sdk::KeyValue>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace agones { namespace dev { @@ -174,154 +141,28 @@ namespace sdk { // ------------------------------------------------------------------- -class AGONES_EXPORT Empty final : - public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Empty) */ { - public: - inline Empty() : Empty(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR Empty(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Empty(const Empty& from); - Empty(Empty&& from) noexcept - : Empty() { - *this = ::std::move(from); - } - - inline Empty& operator=(const Empty& from) { - CopyFrom(from); - return *this; - } - inline Empty& operator=(Empty&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Empty& default_instance() { - return *internal_default_instance(); - } - static inline const Empty* internal_default_instance() { - return reinterpret_cast( - &_Empty_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Empty& a, Empty& b) { - a.Swap(&b); - } - inline void Swap(Empty* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Empty* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Empty* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const Empty& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const Empty& from) { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.Empty"; - } - protected: - explicit Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:agones.dev.sdk.Empty) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - }; - friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- - -class AGONES_EXPORT KeyValue final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.KeyValue) */ { +class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.KeyValue) */ { public: inline KeyValue() : KeyValue(nullptr) {} ~KeyValue() override; - template - explicit PROTOBUF_CONSTEXPR KeyValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - KeyValue(const KeyValue& from); - KeyValue(KeyValue&& from) noexcept - : KeyValue() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR KeyValue( + ::google::protobuf::internal::ConstantInitialized); + inline KeyValue(const KeyValue& from) : KeyValue(nullptr, from) {} + inline KeyValue(KeyValue&& from) noexcept + : KeyValue(nullptr, std::move(from)) {} inline KeyValue& operator=(const KeyValue& from) { CopyFrom(from); return *this; } inline KeyValue& operator=(KeyValue&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -330,20 +171,22 @@ class AGONES_EXPORT KeyValue final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const KeyValue& default_instance() { @@ -351,80 +194,77 @@ class AGONES_EXPORT KeyValue final : } static inline const KeyValue* internal_default_instance() { return reinterpret_cast( - &_KeyValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(KeyValue& a, KeyValue& b) { - a.Swap(&b); + &_KeyValue_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(KeyValue& a, KeyValue& b) { a.Swap(&b); } inline void Swap(KeyValue* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(KeyValue* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - KeyValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + KeyValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const KeyValue& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const KeyValue& from) { - KeyValue::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const KeyValue& from) { KeyValue::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(KeyValue* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.KeyValue"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.KeyValue"; } + + protected: + explicit KeyValue(::google::protobuf::Arena* arena); + KeyValue(::google::protobuf::Arena* arena, const KeyValue& from); + KeyValue(::google::protobuf::Arena* arena, KeyValue&& from) noexcept + : KeyValue(arena) { + *this = ::std::move(from); } - protected: - explicit KeyValue(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kKeyFieldNumber = 1, kValueFieldNumber = 2, @@ -432,15 +272,11 @@ class AGONES_EXPORT KeyValue final : // string key = 1; void clear_key() ; const std::string& key() const; - - - - template void set_key(Arg_&& arg, Args_... args); std::string* mutable_key(); PROTOBUF_NODISCARD std::string* release_key(); - void set_allocated_key(std::string* ptr); + void set_allocated_key(std::string* value); private: const std::string& _internal_key() const; @@ -452,15 +288,11 @@ class AGONES_EXPORT KeyValue final : // string value = 2; void clear_value() ; const std::string& value() const; - - - - template void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* ptr); + void set_allocated_value(std::string* value); private: const std::string& _internal_value() const; @@ -472,43 +304,56 @@ class AGONES_EXPORT KeyValue final : // @@protoc_insertion_point(class_scope:agones.dev.sdk.KeyValue) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 40, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT Duration final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Duration) */ { +class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Port) */ { public: - inline Duration() : Duration(nullptr) {} - ~Duration() override; - template - explicit PROTOBUF_CONSTEXPR Duration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Duration(const Duration& from); - Duration(Duration&& from) noexcept - : Duration() { - *this = ::std::move(from); - } + inline GameServer_Status_Port() : GameServer_Status_Port(nullptr) {} + ~GameServer_Status_Port() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_Port( + ::google::protobuf::internal::ConstantInitialized); - inline Duration& operator=(const Duration& from) { + inline GameServer_Status_Port(const GameServer_Status_Port& from) : GameServer_Status_Port(nullptr, from) {} + inline GameServer_Status_Port(GameServer_Status_Port&& from) noexcept + : GameServer_Status_Port(nullptr, std::move(from)) {} + inline GameServer_Status_Port& operator=(const GameServer_Status_Port& from) { CopyFrom(from); return *this; } - inline Duration& operator=(Duration&& from) noexcept { + inline GameServer_Status_Port& operator=(GameServer_Status_Port&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -517,209 +362,183 @@ class AGONES_EXPORT Duration final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Duration& default_instance() { + static const GameServer_Status_Port& default_instance() { return *internal_default_instance(); } - static inline const Duration* internal_default_instance() { - return reinterpret_cast( - &_Duration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Duration& a, Duration& b) { - a.Swap(&b); + static inline const GameServer_Status_Port* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_Port_default_instance_); } - inline void Swap(Duration* other) { + static constexpr int kIndexInFileMessages = 9; + friend void swap(GameServer_Status_Port& a, GameServer_Status_Port& b) { a.Swap(&b); } + inline void Swap(GameServer_Status_Port* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Duration* other) { + void UnsafeArenaSwap(GameServer_Status_Port* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Duration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Duration& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Duration& from) { - Duration::MergeImpl(*this, from); + GameServer_Status_Port* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Status_Port& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status_Port& from) { GameServer_Status_Port::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Duration* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.Duration"; + void InternalSwap(GameServer_Status_Port* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Port"; } + + protected: + explicit GameServer_Status_Port(::google::protobuf::Arena* arena); + GameServer_Status_Port(::google::protobuf::Arena* arena, const GameServer_Status_Port& from); + GameServer_Status_Port(::google::protobuf::Arena* arena, GameServer_Status_Port&& from) noexcept + : GameServer_Status_Port(arena) { + *this = ::std::move(from); } - protected: - explicit Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSecondsFieldNumber = 1, + kNameFieldNumber = 1, + kPortFieldNumber = 2, }; - // int64 seconds = 1; - void clear_seconds() ; - ::int64_t seconds() const; - void set_seconds(::int64_t value); + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); private: - ::int64_t _internal_seconds() const; - void _internal_set_seconds(::int64_t value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.Duration) + // int32 port = 2; + void clear_port() ; + ::int32_t port() const; + void set_port(::int32_t value); + + private: + ::int32_t _internal_port() const; + void _internal_set_port(::int32_t value); + + public: + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Port) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 50, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::int64_t seconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr name_; + ::int32_t port_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- - -class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse& other); - static const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_sdk_2eproto; -}; -// ------------------------------------------------------------------- - -class GameServer_ObjectMeta_LabelsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - GameServer_ObjectMeta_LabelsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit GameServer_ObjectMeta_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const GameServer_ObjectMeta_LabelsEntry_DoNotUse& other); - static const GameServer_ObjectMeta_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_sdk_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_ObjectMeta final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.ObjectMeta) */ { +class AGONES_EXPORT GameServer_Status_PlayerStatus final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.PlayerStatus) */ { public: - inline GameServer_ObjectMeta() : GameServer_ObjectMeta(nullptr) {} - ~GameServer_ObjectMeta() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_ObjectMeta(const GameServer_ObjectMeta& from); - GameServer_ObjectMeta(GameServer_ObjectMeta&& from) noexcept - : GameServer_ObjectMeta() { - *this = ::std::move(from); - } + inline GameServer_Status_PlayerStatus() : GameServer_Status_PlayerStatus(nullptr) {} + ~GameServer_Status_PlayerStatus() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatus( + ::google::protobuf::internal::ConstantInitialized); - inline GameServer_ObjectMeta& operator=(const GameServer_ObjectMeta& from) { + inline GameServer_Status_PlayerStatus(const GameServer_Status_PlayerStatus& from) : GameServer_Status_PlayerStatus(nullptr, from) {} + inline GameServer_Status_PlayerStatus(GameServer_Status_PlayerStatus&& from) noexcept + : GameServer_Status_PlayerStatus(nullptr, std::move(from)) {} + inline GameServer_Status_PlayerStatus& operator=(const GameServer_Status_PlayerStatus& from) { CopyFrom(from); return *this; } - inline GameServer_ObjectMeta& operator=(GameServer_ObjectMeta&& from) noexcept { + inline GameServer_Status_PlayerStatus& operator=(GameServer_Status_PlayerStatus&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -728,312 +547,207 @@ class AGONES_EXPORT GameServer_ObjectMeta final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_ObjectMeta& default_instance() { + static const GameServer_Status_PlayerStatus& default_instance() { return *internal_default_instance(); } - static inline const GameServer_ObjectMeta* internal_default_instance() { - return reinterpret_cast( - &_GameServer_ObjectMeta_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(GameServer_ObjectMeta& a, GameServer_ObjectMeta& b) { - a.Swap(&b); + static inline const GameServer_Status_PlayerStatus* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_PlayerStatus_default_instance_); } - inline void Swap(GameServer_ObjectMeta* other) { + static constexpr int kIndexInFileMessages = 10; + friend void swap(GameServer_Status_PlayerStatus& a, GameServer_Status_PlayerStatus& b) { a.Swap(&b); } + inline void Swap(GameServer_Status_PlayerStatus* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_ObjectMeta* other) { + void UnsafeArenaSwap(GameServer_Status_PlayerStatus* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_ObjectMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_ObjectMeta& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_ObjectMeta& from) { - GameServer_ObjectMeta::MergeImpl(*this, from); + GameServer_Status_PlayerStatus* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Status_PlayerStatus& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status_PlayerStatus& from) { GameServer_Status_PlayerStatus::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_ObjectMeta* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.ObjectMeta"; + void InternalSwap(GameServer_Status_PlayerStatus* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.PlayerStatus"; } + + protected: + explicit GameServer_Status_PlayerStatus(::google::protobuf::Arena* arena); + GameServer_Status_PlayerStatus(::google::protobuf::Arena* arena, const GameServer_Status_PlayerStatus& from); + GameServer_Status_PlayerStatus(::google::protobuf::Arena* arena, GameServer_Status_PlayerStatus&& from) noexcept + : GameServer_Status_PlayerStatus(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_ObjectMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { - kAnnotationsFieldNumber = 8, - kLabelsFieldNumber = 9, - kNameFieldNumber = 1, - kNamespaceFieldNumber = 2, - kUidFieldNumber = 3, - kResourceVersionFieldNumber = 4, - kGenerationFieldNumber = 5, - kCreationTimestampFieldNumber = 6, - kDeletionTimestampFieldNumber = 7, + kIdsFieldNumber = 3, + kCountFieldNumber = 1, + kCapacityFieldNumber = 2, }; - // map annotations = 8; - int annotations_size() const; + // repeated string ids = 3; + int ids_size() const; private: - int _internal_annotations_size() const; - - public: - void clear_annotations() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_annotations() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_annotations(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - annotations() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_annotations(); - // map labels = 9; - int labels_size() const; - private: - int _internal_labels_size() const; - - public: - void clear_labels() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_labels() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_labels(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - labels() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_labels(); - // string name = 1; - void clear_name() ; - const std::string& name() const; - - - - - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* ptr); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string namespace = 2; - void clear_namespace_() ; - const std::string& namespace_() const; - - - - - template - void set_namespace_(Arg_&& arg, Args_... args); - std::string* mutable_namespace_(); - PROTOBUF_NODISCARD std::string* release_namespace_(); - void set_allocated_namespace_(std::string* ptr); - - private: - const std::string& _internal_namespace_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_( - const std::string& value); - std::string* _internal_mutable_namespace_(); - - public: - // string uid = 3; - void clear_uid() ; - const std::string& uid() const; - - - - - template - void set_uid(Arg_&& arg, Args_... args); - std::string* mutable_uid(); - PROTOBUF_NODISCARD std::string* release_uid(); - void set_allocated_uid(std::string* ptr); - - private: - const std::string& _internal_uid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid( - const std::string& value); - std::string* _internal_mutable_uid(); - - public: - // string resource_version = 4; - void clear_resource_version() ; - const std::string& resource_version() const; - - - - - template - void set_resource_version(Arg_&& arg, Args_... args); - std::string* mutable_resource_version(); - PROTOBUF_NODISCARD std::string* release_resource_version(); - void set_allocated_resource_version(std::string* ptr); - - private: - const std::string& _internal_resource_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_version( - const std::string& value); - std::string* _internal_mutable_resource_version(); + int _internal_ids_size() const; public: - // int64 generation = 5; - void clear_generation() ; - ::int64_t generation() const; - void set_generation(::int64_t value); + void clear_ids() ; + const std::string& ids(int index) const; + std::string* mutable_ids(int index); + void set_ids(int index, const std::string& value); + void set_ids(int index, std::string&& value); + void set_ids(int index, const char* value); + void set_ids(int index, const char* value, std::size_t size); + void set_ids(int index, absl::string_view value); + std::string* add_ids(); + void add_ids(const std::string& value); + void add_ids(std::string&& value); + void add_ids(const char* value); + void add_ids(const char* value, std::size_t size); + void add_ids(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& ids() const; + ::google::protobuf::RepeatedPtrField* mutable_ids(); private: - ::int64_t _internal_generation() const; - void _internal_set_generation(::int64_t value); + const ::google::protobuf::RepeatedPtrField& _internal_ids() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_ids(); public: - // int64 creation_timestamp = 6; - void clear_creation_timestamp() ; - ::int64_t creation_timestamp() const; - void set_creation_timestamp(::int64_t value); + // int64 count = 1; + void clear_count() ; + ::int64_t count() const; + void set_count(::int64_t value); private: - ::int64_t _internal_creation_timestamp() const; - void _internal_set_creation_timestamp(::int64_t value); + ::int64_t _internal_count() const; + void _internal_set_count(::int64_t value); public: - // int64 deletion_timestamp = 7; - void clear_deletion_timestamp() ; - ::int64_t deletion_timestamp() const; - void set_deletion_timestamp(::int64_t value); + // int64 capacity = 2; + void clear_capacity() ; + ::int64_t capacity() const; + void set_capacity(::int64_t value); private: - ::int64_t _internal_deletion_timestamp() const; - void _internal_set_deletion_timestamp(::int64_t value); + ::int64_t _internal_capacity() const; + void _internal_set_capacity(::int64_t value); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.ObjectMeta) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.PlayerStatus) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 0, + 57, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> annotations_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - GameServer_ObjectMeta_LabelsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> labels_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resource_version_; - ::int64_t generation_; - ::int64_t creation_timestamp_; - ::int64_t deletion_timestamp_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField ids_; + ::int64_t count_; + ::int64_t capacity_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec_Health final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec.Health) */ { +class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.ListStatus) */ { public: - inline GameServer_Spec_Health() : GameServer_Spec_Health(nullptr) {} - ~GameServer_Spec_Health() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Spec_Health(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Spec_Health(const GameServer_Spec_Health& from); - GameServer_Spec_Health(GameServer_Spec_Health&& from) noexcept - : GameServer_Spec_Health() { - *this = ::std::move(from); - } + inline GameServer_Status_ListStatus() : GameServer_Status_ListStatus(nullptr) {} + ~GameServer_Status_ListStatus() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_ListStatus( + ::google::protobuf::internal::ConstantInitialized); - inline GameServer_Spec_Health& operator=(const GameServer_Spec_Health& from) { + inline GameServer_Status_ListStatus(const GameServer_Status_ListStatus& from) : GameServer_Status_ListStatus(nullptr, from) {} + inline GameServer_Status_ListStatus(GameServer_Status_ListStatus&& from) noexcept + : GameServer_Status_ListStatus(nullptr, std::move(from)) {} + inline GameServer_Status_ListStatus& operator=(const GameServer_Status_ListStatus& from) { CopyFrom(from); return *this; } - inline GameServer_Spec_Health& operator=(GameServer_Spec_Health&& from) noexcept { + inline GameServer_Status_ListStatus& operator=(GameServer_Status_ListStatus&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1042,189 +756,195 @@ class AGONES_EXPORT GameServer_Spec_Health final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Spec_Health& default_instance() { + static const GameServer_Status_ListStatus& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Spec_Health* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Spec_Health_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(GameServer_Spec_Health& a, GameServer_Spec_Health& b) { - a.Swap(&b); + static inline const GameServer_Status_ListStatus* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_ListStatus_default_instance_); } - inline void Swap(GameServer_Spec_Health* other) { + static constexpr int kIndexInFileMessages = 12; + friend void swap(GameServer_Status_ListStatus& a, GameServer_Status_ListStatus& b) { a.Swap(&b); } + inline void Swap(GameServer_Status_ListStatus* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Spec_Health* other) { + void UnsafeArenaSwap(GameServer_Status_ListStatus* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Spec_Health* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Spec_Health& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Spec_Health& from) { - GameServer_Spec_Health::MergeImpl(*this, from); + GameServer_Status_ListStatus* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Status_ListStatus& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status_ListStatus& from) { GameServer_Status_ListStatus::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Spec_Health* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Spec.Health"; + void InternalSwap(GameServer_Status_ListStatus* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.ListStatus"; } + + protected: + explicit GameServer_Status_ListStatus(::google::protobuf::Arena* arena); + GameServer_Status_ListStatus(::google::protobuf::Arena* arena, const GameServer_Status_ListStatus& from); + GameServer_Status_ListStatus(::google::protobuf::Arena* arena, GameServer_Status_ListStatus&& from) noexcept + : GameServer_Status_ListStatus(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_Spec_Health(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDisabledFieldNumber = 1, - kPeriodSecondsFieldNumber = 2, - kFailureThresholdFieldNumber = 3, - kInitialDelaySecondsFieldNumber = 4, + kValuesFieldNumber = 2, + kCapacityFieldNumber = 1, }; - // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - void clear_disabled() ; - bool disabled() const; - void set_disabled(bool value); - - private: - bool _internal_disabled() const; - void _internal_set_disabled(bool value); - - public: - // int32 period_seconds = 2; - void clear_period_seconds() ; - ::int32_t period_seconds() const; - void set_period_seconds(::int32_t value); - + // repeated string values = 2; + int values_size() const; private: - ::int32_t _internal_period_seconds() const; - void _internal_set_period_seconds(::int32_t value); + int _internal_values_size() const; public: - // int32 failure_threshold = 3; - void clear_failure_threshold() ; - ::int32_t failure_threshold() const; - void set_failure_threshold(::int32_t value); + void clear_values() ; + const std::string& values(int index) const; + std::string* mutable_values(int index); + void set_values(int index, const std::string& value); + void set_values(int index, std::string&& value); + void set_values(int index, const char* value); + void set_values(int index, const char* value, std::size_t size); + void set_values(int index, absl::string_view value); + std::string* add_values(); + void add_values(const std::string& value); + void add_values(std::string&& value); + void add_values(const char* value); + void add_values(const char* value, std::size_t size); + void add_values(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& values() const; + ::google::protobuf::RepeatedPtrField* mutable_values(); private: - ::int32_t _internal_failure_threshold() const; - void _internal_set_failure_threshold(::int32_t value); + const ::google::protobuf::RepeatedPtrField& _internal_values() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_values(); public: - // int32 initial_delay_seconds = 4; - void clear_initial_delay_seconds() ; - ::int32_t initial_delay_seconds() const; - void set_initial_delay_seconds(::int32_t value); + // int64 capacity = 1; + void clear_capacity() ; + ::int64_t capacity() const; + void set_capacity(::int64_t value); private: - ::int32_t _internal_initial_delay_seconds() const; - void _internal_set_initial_delay_seconds(::int32_t value); + ::int64_t _internal_capacity() const; + void _internal_set_capacity(::int64_t value); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec.Health) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.ListStatus) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 58, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - bool disabled_; - ::int32_t period_seconds_; - ::int32_t failure_threshold_; - ::int32_t initial_delay_seconds_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField values_; + ::int64_t capacity_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec) */ { +class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.CounterStatus) */ { public: - inline GameServer_Spec() : GameServer_Spec(nullptr) {} - ~GameServer_Spec() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Spec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Spec(const GameServer_Spec& from); - GameServer_Spec(GameServer_Spec&& from) noexcept - : GameServer_Spec() { - *this = ::std::move(from); - } + inline GameServer_Status_CounterStatus() : GameServer_Status_CounterStatus(nullptr) {} + ~GameServer_Status_CounterStatus() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus( + ::google::protobuf::internal::ConstantInitialized); - inline GameServer_Spec& operator=(const GameServer_Spec& from) { + inline GameServer_Status_CounterStatus(const GameServer_Status_CounterStatus& from) : GameServer_Status_CounterStatus(nullptr, from) {} + inline GameServer_Status_CounterStatus(GameServer_Status_CounterStatus&& from) noexcept + : GameServer_Status_CounterStatus(nullptr, std::move(from)) {} + inline GameServer_Status_CounterStatus& operator=(const GameServer_Status_CounterStatus& from) { CopyFrom(from); return *this; } - inline GameServer_Spec& operator=(GameServer_Spec&& from) noexcept { + inline GameServer_Status_CounterStatus& operator=(GameServer_Status_CounterStatus&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1233,160 +953,177 @@ class AGONES_EXPORT GameServer_Spec final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Spec& default_instance() { + static const GameServer_Status_CounterStatus& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Spec* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Spec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(GameServer_Spec& a, GameServer_Spec& b) { - a.Swap(&b); + static inline const GameServer_Status_CounterStatus* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_CounterStatus_default_instance_); } - inline void Swap(GameServer_Spec* other) { + static constexpr int kIndexInFileMessages = 11; + friend void swap(GameServer_Status_CounterStatus& a, GameServer_Status_CounterStatus& b) { a.Swap(&b); } + inline void Swap(GameServer_Status_CounterStatus* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Spec* other) { + void UnsafeArenaSwap(GameServer_Status_CounterStatus* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Spec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Spec& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Spec& from) { - GameServer_Spec::MergeImpl(*this, from); + GameServer_Status_CounterStatus* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Status_CounterStatus& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status_CounterStatus& from) { GameServer_Status_CounterStatus::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Spec* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Spec"; + void InternalSwap(GameServer_Status_CounterStatus* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.CounterStatus"; } + + protected: + explicit GameServer_Status_CounterStatus(::google::protobuf::Arena* arena); + GameServer_Status_CounterStatus(::google::protobuf::Arena* arena, const GameServer_Status_CounterStatus& from); + GameServer_Status_CounterStatus(::google::protobuf::Arena* arena, GameServer_Status_CounterStatus&& from) noexcept + : GameServer_Status_CounterStatus(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_Spec(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - typedef GameServer_Spec_Health Health; - // accessors ------------------------------------------------------- - enum : int { - kHealthFieldNumber = 1, + kCountFieldNumber = 1, + kCapacityFieldNumber = 2, }; - // .agones.dev.sdk.GameServer.Spec.Health health = 1; - bool has_health() const; - void clear_health() ; - const ::agones::dev::sdk::GameServer_Spec_Health& health() const; - PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_Spec_Health* release_health(); - ::agones::dev::sdk::GameServer_Spec_Health* mutable_health(); - void set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* health); + // int64 count = 1; + void clear_count() ; + ::int64_t count() const; + void set_count(::int64_t value); + private: - const ::agones::dev::sdk::GameServer_Spec_Health& _internal_health() const; - ::agones::dev::sdk::GameServer_Spec_Health* _internal_mutable_health(); + ::int64_t _internal_count() const; + void _internal_set_count(::int64_t value); + public: - void unsafe_arena_set_allocated_health( - ::agones::dev::sdk::GameServer_Spec_Health* health); - ::agones::dev::sdk::GameServer_Spec_Health* unsafe_arena_release_health(); - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec) + // int64 capacity = 2; + void clear_capacity() ; + ::int64_t capacity() const; + void set_capacity(::int64_t value); + + private: + ::int64_t _internal_capacity() const; + void _internal_set_capacity(::int64_t value); + + public: + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.CounterStatus) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::agones::dev::sdk::GameServer_Spec_Health* health_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::int64_t count_; + ::int64_t capacity_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_Address final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Address) */ { +class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Address) */ { public: inline GameServer_Status_Address() : GameServer_Status_Address(nullptr) {} ~GameServer_Status_Address() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_Address(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Status_Address(const GameServer_Status_Address& from); - GameServer_Status_Address(GameServer_Status_Address&& from) noexcept - : GameServer_Status_Address() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_Address( + ::google::protobuf::internal::ConstantInitialized); + inline GameServer_Status_Address(const GameServer_Status_Address& from) : GameServer_Status_Address(nullptr, from) {} + inline GameServer_Status_Address(GameServer_Status_Address&& from) noexcept + : GameServer_Status_Address(nullptr, std::move(from)) {} inline GameServer_Status_Address& operator=(const GameServer_Status_Address& from) { CopyFrom(from); return *this; } inline GameServer_Status_Address& operator=(GameServer_Status_Address&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1395,20 +1132,22 @@ class AGONES_EXPORT GameServer_Status_Address final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GameServer_Status_Address& default_instance() { @@ -1416,80 +1155,77 @@ class AGONES_EXPORT GameServer_Status_Address final : } static inline const GameServer_Status_Address* internal_default_instance() { return reinterpret_cast( - &_GameServer_Status_Address_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(GameServer_Status_Address& a, GameServer_Status_Address& b) { - a.Swap(&b); + &_GameServer_Status_Address_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(GameServer_Status_Address& a, GameServer_Status_Address& b) { a.Swap(&b); } inline void Swap(GameServer_Status_Address* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GameServer_Status_Address* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status_Address* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GameServer_Status_Address* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GameServer_Status_Address& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status_Address& from) { - GameServer_Status_Address::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status_Address& from) { GameServer_Status_Address::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(GameServer_Status_Address* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Address"; } + + protected: + explicit GameServer_Status_Address(::google::protobuf::Arena* arena); + GameServer_Status_Address(::google::protobuf::Arena* arena, const GameServer_Status_Address& from); + GameServer_Status_Address(::google::protobuf::Arena* arena, GameServer_Status_Address&& from) noexcept + : GameServer_Status_Address(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status.Address"; - } - protected: - explicit GameServer_Status_Address(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kTypeFieldNumber = 1, kAddressFieldNumber = 2, @@ -1497,15 +1233,11 @@ class AGONES_EXPORT GameServer_Status_Address final : // string type = 1; void clear_type() ; const std::string& type() const; - - - - template void set_type(Arg_&& arg, Args_... args); std::string* mutable_type(); PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* ptr); + void set_allocated_type(std::string* value); private: const std::string& _internal_type() const; @@ -1517,15 +1249,11 @@ class AGONES_EXPORT GameServer_Status_Address final : // string address = 2; void clear_address() ; const std::string& address() const; - - - - template void set_address(Arg_&& arg, Args_... args); std::string* mutable_address(); PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* ptr); + void set_allocated_address(std::string* value); private: const std::string& _internal_address() const; @@ -1537,43 +1265,56 @@ class AGONES_EXPORT GameServer_Status_Address final : // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Address) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 60, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr address_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_Port final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Port) */ { +class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec.Health) */ { public: - inline GameServer_Status_Port() : GameServer_Status_Port(nullptr) {} - ~GameServer_Status_Port() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_Port(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Status_Port(const GameServer_Status_Port& from); - GameServer_Status_Port(GameServer_Status_Port&& from) noexcept - : GameServer_Status_Port() { - *this = ::std::move(from); - } + inline GameServer_Spec_Health() : GameServer_Spec_Health(nullptr) {} + ~GameServer_Spec_Health() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Spec_Health( + ::google::protobuf::internal::ConstantInitialized); - inline GameServer_Status_Port& operator=(const GameServer_Status_Port& from) { + inline GameServer_Spec_Health(const GameServer_Spec_Health& from) : GameServer_Spec_Health(nullptr, from) {} + inline GameServer_Spec_Health(GameServer_Spec_Health&& from) noexcept + : GameServer_Spec_Health(nullptr, std::move(from)) {} + inline GameServer_Spec_Health& operator=(const GameServer_Spec_Health& from) { CopyFrom(from); return *this; } - inline GameServer_Status_Port& operator=(GameServer_Status_Port&& from) noexcept { + inline GameServer_Spec_Health& operator=(GameServer_Spec_Health&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1582,175 +1323,260 @@ class AGONES_EXPORT GameServer_Status_Port final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_Port& default_instance() { + static const GameServer_Spec_Health& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Status_Port* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Status_Port_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(GameServer_Status_Port& a, GameServer_Status_Port& b) { - a.Swap(&b); + static inline const GameServer_Spec_Health* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Spec_Health_default_instance_); } - inline void Swap(GameServer_Status_Port* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(GameServer_Spec_Health& a, GameServer_Spec_Health& b) { a.Swap(&b); } + inline void Swap(GameServer_Spec_Health* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Status_Port* other) { + void UnsafeArenaSwap(GameServer_Spec_Health* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status_Port* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Status_Port& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status_Port& from) { - GameServer_Status_Port::MergeImpl(*this, from); + GameServer_Spec_Health* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Spec_Health& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Spec_Health& from) { GameServer_Spec_Health::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Status_Port* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status.Port"; + void InternalSwap(GameServer_Spec_Health* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec.Health"; } + + protected: + explicit GameServer_Spec_Health(::google::protobuf::Arena* arena); + GameServer_Spec_Health(::google::protobuf::Arena* arena, const GameServer_Spec_Health& from); + GameServer_Spec_Health(::google::protobuf::Arena* arena, GameServer_Spec_Health&& from) noexcept + : GameServer_Spec_Health(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_Status_Port(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kPortFieldNumber = 2, + kDisabledFieldNumber = 1, + kPeriodSecondsFieldNumber = 2, + kFailureThresholdFieldNumber = 3, + kInitialDelaySecondsFieldNumber = 4, }; - // string name = 1; - void clear_name() ; - const std::string& name() const; + // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { + void clear_disabled() ; + bool disabled() const; + void set_disabled(bool value); + private: + bool _internal_disabled() const; + void _internal_set_disabled(bool value); + public: + // int32 period_seconds = 2; + void clear_period_seconds() ; + ::int32_t period_seconds() const; + void set_period_seconds(::int32_t value); + private: + ::int32_t _internal_period_seconds() const; + void _internal_set_period_seconds(::int32_t value); - template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* ptr); + public: + // int32 failure_threshold = 3; + void clear_failure_threshold() ; + ::int32_t failure_threshold() const; + void set_failure_threshold(::int32_t value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + ::int32_t _internal_failure_threshold() const; + void _internal_set_failure_threshold(::int32_t value); public: - // int32 port = 2; - void clear_port() ; - ::int32_t port() const; - void set_port(::int32_t value); + // int32 initial_delay_seconds = 4; + void clear_initial_delay_seconds() ; + ::int32_t initial_delay_seconds() const; + void set_initial_delay_seconds(::int32_t value); private: - ::int32_t _internal_port() const; - void _internal_set_port(::int32_t value); + ::int32_t _internal_initial_delay_seconds() const; + void _internal_set_initial_delay_seconds(::int32_t value); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Port) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec.Health) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::int32_t port_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + bool disabled_; + ::int32_t period_seconds_; + ::int32_t failure_threshold_; + ::int32_t initial_delay_seconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_PlayerStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.PlayerStatus) */ { +class GameServer_ObjectMeta_LabelsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + GameServer_ObjectMeta_LabelsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { public: - inline GameServer_Status_PlayerStatus() : GameServer_Status_PlayerStatus(nullptr) {} - ~GameServer_Status_PlayerStatus() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + GameServer_ObjectMeta_LabelsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + GameServer_ObjectMeta_LabelsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const GameServer_ObjectMeta_LabelsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry.value"); + } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_sdk_2eproto; +}; +// ------------------------------------------------------------------- - GameServer_Status_PlayerStatus(const GameServer_Status_PlayerStatus& from); - GameServer_Status_PlayerStatus(GameServer_Status_PlayerStatus&& from) noexcept - : GameServer_Status_PlayerStatus() { - *this = ::std::move(from); +class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry.value"); + } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_sdk_2eproto; +}; +// ------------------------------------------------------------------- - inline GameServer_Status_PlayerStatus& operator=(const GameServer_Status_PlayerStatus& from) { +class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroFieldsBase +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.Empty) */ { + public: + inline Empty() : Empty(nullptr) {} + template + explicit PROTOBUF_CONSTEXPR Empty( + ::google::protobuf::internal::ConstantInitialized); + + inline Empty(const Empty& from) : Empty(nullptr, from) {} + inline Empty(Empty&& from) noexcept + : Empty(nullptr, std::move(from)) {} + inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; } - inline GameServer_Status_PlayerStatus& operator=(GameServer_Status_PlayerStatus&& from) noexcept { + inline Empty& operator=(Empty&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1759,197 +1585,350 @@ class AGONES_EXPORT GameServer_Status_PlayerStatus final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_PlayerStatus& default_instance() { + static const Empty& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Status_PlayerStatus* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Status_PlayerStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(GameServer_Status_PlayerStatus& a, GameServer_Status_PlayerStatus& b) { - a.Swap(&b); + static inline const Empty* internal_default_instance() { + return reinterpret_cast( + &_Empty_default_instance_); } - inline void Swap(GameServer_Status_PlayerStatus* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(Empty& a, Empty& b) { a.Swap(&b); } + inline void Swap(Empty* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Status_PlayerStatus* other) { + void UnsafeArenaSwap(Empty* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status_PlayerStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Empty* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Status_PlayerStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status_PlayerStatus& from) { - GameServer_Status_PlayerStatus::MergeImpl(*this, from); + using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; + inline void CopyFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Status_PlayerStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status.PlayerStatus"; + using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; + void MergeFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } - protected: - explicit GameServer_Status_PlayerStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Empty"; } + + protected: + explicit Empty(::google::protobuf::Arena* arena); + Empty(::google::protobuf::Arena* arena, const Empty& from); + Empty(::google::protobuf::Arena* arena, Empty&& from) noexcept + : Empty(arena) { + *this = ::std::move(from); + } + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - - enum : int { - kIdsFieldNumber = 3, - kCountFieldNumber = 1, - kCapacityFieldNumber = 2, + // @@protoc_insertion_point(class_scope:agones.dev.sdk.Empty) + private: + class _Internal; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + PROTOBUF_TSAN_DECLARE_MEMBER }; - // repeated string ids = 3; - int ids_size() const; - private: - int _internal_ids_size() const; + friend struct ::TableStruct_sdk_2eproto; +}; +// ------------------------------------------------------------------- - public: - void clear_ids() ; - const std::string& ids(int index) const; - std::string* mutable_ids(int index); - void set_ids(int index, const std::string& value); - void set_ids(int index, std::string&& value); - void set_ids(int index, const char* value); - void set_ids(int index, const char* value, std::size_t size); - void set_ids(int index, absl::string_view value); - std::string* add_ids(); - void add_ids(const std::string& value); - void add_ids(std::string&& value); - void add_ids(const char* value); - void add_ids(const char* value, std::size_t size); - void add_ids(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_ids(); +class AGONES_EXPORT Duration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.Duration) */ { + public: + inline Duration() : Duration(nullptr) {} + ~Duration() override; + template + explicit PROTOBUF_CONSTEXPR Duration( + ::google::protobuf::internal::ConstantInitialized); + + inline Duration(const Duration& from) : Duration(nullptr, from) {} + inline Duration(Duration&& from) noexcept + : Duration(nullptr, std::move(from)) {} + inline Duration& operator=(const Duration& from) { + CopyFrom(from); + return *this; + } + inline Duration& operator=(Duration&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Duration& default_instance() { + return *internal_default_instance(); + } + static inline const Duration* internal_default_instance() { + return reinterpret_cast( + &_Duration_default_instance_); + } + static constexpr int kIndexInFileMessages = 2; + friend void swap(Duration& a, Duration& b) { a.Swap(&b); } + inline void Swap(Duration* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Duration* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Duration* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Duration& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Duration& from) { Duration::MergeImpl(*this, from); } private: - const std::string& _internal_ids(int index) const; - std::string* _internal_add_ids(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_ids(); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: - // int64 count = 1; - void clear_count() ; - ::int64_t count() const; - void set_count(::int64_t value); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::int64_t _internal_count() const; - void _internal_set_count(::int64_t value); + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(Duration* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Duration"; } + + protected: + explicit Duration(::google::protobuf::Arena* arena); + Duration(::google::protobuf::Arena* arena, const Duration& from); + Duration(::google::protobuf::Arena* arena, Duration&& from) noexcept + : Duration(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - // int64 capacity = 2; - void clear_capacity() ; - ::int64_t capacity() const; - void set_capacity(::int64_t value); + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSecondsFieldNumber = 1, + }; + // int64 seconds = 1; + void clear_seconds() ; + ::int64_t seconds() const; + void set_seconds(::int64_t value); private: - ::int64_t _internal_capacity() const; - void _internal_set_capacity(::int64_t value); + ::int64_t _internal_seconds() const; + void _internal_set_seconds(::int64_t value); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.PlayerStatus) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.Duration) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField ids_; - ::int64_t count_; - ::int64_t capacity_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::int64_t seconds_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_CounterStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.CounterStatus) */ { +class GameServer_Status_ListsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + GameServer_Status_ListsEntry_DoNotUse, std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline GameServer_Status_CounterStatus() : GameServer_Status_CounterStatus(nullptr) {} - ~GameServer_Status_CounterStatus() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + GameServer_Status_ListsEntry_DoNotUse, std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + GameServer_Status_ListsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const GameServer_Status_ListsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_ListsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.Status.ListsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_sdk_2eproto; +}; +// ------------------------------------------------------------------- - GameServer_Status_CounterStatus(const GameServer_Status_CounterStatus& from); - GameServer_Status_CounterStatus(GameServer_Status_CounterStatus&& from) noexcept - : GameServer_Status_CounterStatus() { - *this = ::std::move(from); +class GameServer_Status_CountersEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + GameServer_Status_CountersEntry_DoNotUse, std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + GameServer_Status_CountersEntry_DoNotUse, std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + GameServer_Status_CountersEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* arena); + static const GameServer_Status_CountersEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Status_CountersEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.Status.CountersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_sdk_2eproto; +}; +// ------------------------------------------------------------------- - inline GameServer_Status_CounterStatus& operator=(const GameServer_Status_CounterStatus& from) { +class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec) */ { + public: + inline GameServer_Spec() : GameServer_Spec(nullptr) {} + ~GameServer_Spec() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_Spec( + ::google::protobuf::internal::ConstantInitialized); + + inline GameServer_Spec(const GameServer_Spec& from) : GameServer_Spec(nullptr, from) {} + inline GameServer_Spec(GameServer_Spec&& from) noexcept + : GameServer_Spec(nullptr, std::move(from)) {} + inline GameServer_Spec& operator=(const GameServer_Spec& from) { CopyFrom(from); return *this; } - inline GameServer_Status_CounterStatus& operator=(GameServer_Status_CounterStatus&& from) noexcept { + inline GameServer_Spec& operator=(GameServer_Spec&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1958,165 +1937,172 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_CounterStatus& default_instance() { + static const GameServer_Spec& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Status_CounterStatus* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Status_CounterStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(GameServer_Status_CounterStatus& a, GameServer_Status_CounterStatus& b) { - a.Swap(&b); + static inline const GameServer_Spec* internal_default_instance() { + return reinterpret_cast( + &_GameServer_Spec_default_instance_); } - inline void Swap(GameServer_Status_CounterStatus* other) { + static constexpr int kIndexInFileMessages = 7; + friend void swap(GameServer_Spec& a, GameServer_Spec& b) { a.Swap(&b); } + inline void Swap(GameServer_Spec* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Status_CounterStatus* other) { + void UnsafeArenaSwap(GameServer_Spec* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status_CounterStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Status_CounterStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status_CounterStatus& from) { - GameServer_Status_CounterStatus::MergeImpl(*this, from); + GameServer_Spec* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_Spec& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Spec& from) { GameServer_Spec::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Status_CounterStatus* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status.CounterStatus"; + void InternalSwap(GameServer_Spec* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec"; } + + protected: + explicit GameServer_Spec(::google::protobuf::Arena* arena); + GameServer_Spec(::google::protobuf::Arena* arena, const GameServer_Spec& from); + GameServer_Spec(::google::protobuf::Arena* arena, GameServer_Spec&& from) noexcept + : GameServer_Spec(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_Status_CounterStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + using Health = GameServer_Spec_Health; // accessors ------------------------------------------------------- - enum : int { - kCountFieldNumber = 1, - kCapacityFieldNumber = 2, + kHealthFieldNumber = 1, }; - // int64 count = 1; - void clear_count() ; - ::int64_t count() const; - void set_count(::int64_t value); - - private: - ::int64_t _internal_count() const; - void _internal_set_count(::int64_t value); - - public: - // int64 capacity = 2; - void clear_capacity() ; - ::int64_t capacity() const; - void set_capacity(::int64_t value); + // .agones.dev.sdk.GameServer.Spec.Health health = 1; + bool has_health() const; + void clear_health() ; + const ::agones::dev::sdk::GameServer_Spec_Health& health() const; + PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_Spec_Health* release_health(); + ::agones::dev::sdk::GameServer_Spec_Health* mutable_health(); + void set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* value); + void unsafe_arena_set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* value); + ::agones::dev::sdk::GameServer_Spec_Health* unsafe_arena_release_health(); private: - ::int64_t _internal_capacity() const; - void _internal_set_capacity(::int64_t value); + const ::agones::dev::sdk::GameServer_Spec_Health& _internal_health() const; + ::agones::dev::sdk::GameServer_Spec_Health* _internal_mutable_health(); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.CounterStatus) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::int64_t count_; - ::int64_t capacity_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::agones::dev::sdk::GameServer_Spec_Health* health_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_ListStatus final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.ListStatus) */ { +class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.ObjectMeta) */ { public: - inline GameServer_Status_ListStatus() : GameServer_Status_ListStatus(nullptr) {} - ~GameServer_Status_ListStatus() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_ListStatus(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Status_ListStatus(const GameServer_Status_ListStatus& from); - GameServer_Status_ListStatus(GameServer_Status_ListStatus&& from) noexcept - : GameServer_Status_ListStatus() { - *this = ::std::move(from); - } + inline GameServer_ObjectMeta() : GameServer_ObjectMeta(nullptr) {} + ~GameServer_ObjectMeta() override; + template + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta( + ::google::protobuf::internal::ConstantInitialized); - inline GameServer_Status_ListStatus& operator=(const GameServer_Status_ListStatus& from) { + inline GameServer_ObjectMeta(const GameServer_ObjectMeta& from) : GameServer_ObjectMeta(nullptr, from) {} + inline GameServer_ObjectMeta(GameServer_ObjectMeta&& from) noexcept + : GameServer_ObjectMeta(nullptr, std::move(from)) {} + inline GameServer_ObjectMeta& operator=(const GameServer_ObjectMeta& from) { CopyFrom(from); return *this; } - inline GameServer_Status_ListStatus& operator=(GameServer_Status_ListStatus&& from) noexcept { + inline GameServer_ObjectMeta& operator=(GameServer_ObjectMeta&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2125,237 +2111,301 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_ListStatus& default_instance() { + static const GameServer_ObjectMeta& default_instance() { return *internal_default_instance(); } - static inline const GameServer_Status_ListStatus* internal_default_instance() { - return reinterpret_cast( - &_GameServer_Status_ListStatus_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(GameServer_Status_ListStatus& a, GameServer_Status_ListStatus& b) { - a.Swap(&b); + static inline const GameServer_ObjectMeta* internal_default_instance() { + return reinterpret_cast( + &_GameServer_ObjectMeta_default_instance_); } - inline void Swap(GameServer_Status_ListStatus* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(GameServer_ObjectMeta& a, GameServer_ObjectMeta& b) { a.Swap(&b); } + inline void Swap(GameServer_ObjectMeta* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GameServer_Status_ListStatus* other) { + void UnsafeArenaSwap(GameServer_ObjectMeta* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status_ListStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const GameServer_Status_ListStatus& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status_ListStatus& from) { - GameServer_Status_ListStatus::MergeImpl(*this, from); + GameServer_ObjectMeta* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GameServer_ObjectMeta& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_ObjectMeta& from) { GameServer_ObjectMeta::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(GameServer_ObjectMeta* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.ObjectMeta"; } + + protected: + explicit GameServer_ObjectMeta(::google::protobuf::Arena* arena); + GameServer_ObjectMeta(::google::protobuf::Arena* arena, const GameServer_ObjectMeta& from); + GameServer_ObjectMeta(::google::protobuf::Arena* arena, GameServer_ObjectMeta&& from) noexcept + : GameServer_ObjectMeta(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kAnnotationsFieldNumber = 8, + kLabelsFieldNumber = 9, + kNameFieldNumber = 1, + kNamespaceFieldNumber = 2, + kUidFieldNumber = 3, + kResourceVersionFieldNumber = 4, + kGenerationFieldNumber = 5, + kCreationTimestampFieldNumber = 6, + kDeletionTimestampFieldNumber = 7, + }; + // map annotations = 8; + int annotations_size() const; + private: + int _internal_annotations_size() const; + + public: + void clear_annotations() ; + const ::google::protobuf::Map& annotations() const; + ::google::protobuf::Map* mutable_annotations(); + + private: + const ::google::protobuf::Map& _internal_annotations() const; + ::google::protobuf::Map* _internal_mutable_annotations(); + + public: + // map labels = 9; + int labels_size() const; + private: + int _internal_labels_size() const; + + public: + void clear_labels() ; + const ::google::protobuf::Map& labels() const; + ::google::protobuf::Map* mutable_labels(); + + private: + const ::google::protobuf::Map& _internal_labels() const; + ::google::protobuf::Map* _internal_mutable_labels(); + + public: + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // string namespace = 2; + void clear_namespace_() ; + const std::string& namespace_() const; + template + void set_namespace_(Arg_&& arg, Args_... args); + std::string* mutable_namespace_(); + PROTOBUF_NODISCARD std::string* release_namespace_(); + void set_allocated_namespace_(std::string* value); + + private: + const std::string& _internal_namespace_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_( + const std::string& value); + std::string* _internal_mutable_namespace_(); + + public: + // string uid = 3; + void clear_uid() ; + const std::string& uid() const; + template + void set_uid(Arg_&& arg, Args_... args); + std::string* mutable_uid(); + PROTOBUF_NODISCARD std::string* release_uid(); + void set_allocated_uid(std::string* value); private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GameServer_Status_ListStatus* other); + const std::string& _internal_uid() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid( + const std::string& value); + std::string* _internal_mutable_uid(); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status.ListStatus"; - } - protected: - explicit GameServer_Status_ListStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: + // string resource_version = 4; + void clear_resource_version() ; + const std::string& resource_version() const; + template + void set_resource_version(Arg_&& arg, Args_... args); + std::string* mutable_resource_version(); + PROTOBUF_NODISCARD std::string* release_resource_version(); + void set_allocated_resource_version(std::string* value); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- + private: + const std::string& _internal_resource_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_resource_version( + const std::string& value); + std::string* _internal_mutable_resource_version(); - // accessors ------------------------------------------------------- + public: + // int64 generation = 5; + void clear_generation() ; + ::int64_t generation() const; + void set_generation(::int64_t value); - enum : int { - kValuesFieldNumber = 2, - kCapacityFieldNumber = 1, - }; - // repeated string values = 2; - int values_size() const; private: - int _internal_values_size() const; + ::int64_t _internal_generation() const; + void _internal_set_generation(::int64_t value); public: - void clear_values() ; - const std::string& values(int index) const; - std::string* mutable_values(int index); - void set_values(int index, const std::string& value); - void set_values(int index, std::string&& value); - void set_values(int index, const char* value); - void set_values(int index, const char* value, std::size_t size); - void set_values(int index, absl::string_view value); - std::string* add_values(); - void add_values(const std::string& value); - void add_values(std::string&& value); - void add_values(const char* value); - void add_values(const char* value, std::size_t size); - void add_values(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_values(); + // int64 creation_timestamp = 6; + void clear_creation_timestamp() ; + ::int64_t creation_timestamp() const; + void set_creation_timestamp(::int64_t value); private: - const std::string& _internal_values(int index) const; - std::string* _internal_add_values(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_values() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_values(); + ::int64_t _internal_creation_timestamp() const; + void _internal_set_creation_timestamp(::int64_t value); public: - // int64 capacity = 1; - void clear_capacity() ; - ::int64_t capacity() const; - void set_capacity(::int64_t value); + // int64 deletion_timestamp = 7; + void clear_deletion_timestamp() ; + ::int64_t deletion_timestamp() const; + void set_deletion_timestamp(::int64_t value); private: - ::int64_t _internal_capacity() const; - void _internal_set_capacity(::int64_t value); + ::int64_t _internal_deletion_timestamp() const; + void _internal_set_deletion_timestamp(::int64_t value); public: - // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.ListStatus) + // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.ObjectMeta) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 9, 2, + 102, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; - ::int64_t capacity_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::MapField + annotations_; + ::google::protobuf::internal::MapField + labels_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr uid_; + ::google::protobuf::internal::ArenaStringPtr resource_version_; + ::int64_t generation_; + ::int64_t creation_timestamp_; + ::int64_t deletion_timestamp_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- - -class GameServer_Status_CountersEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - GameServer_Status_CountersEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit GameServer_Status_CountersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const GameServer_Status_CountersEntry_DoNotUse& other); - static const GameServer_Status_CountersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_Status_CountersEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.Status.CountersEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_sdk_2eproto; -}; -// ------------------------------------------------------------------- - -class GameServer_Status_ListsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - GameServer_Status_ListsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit GameServer_Status_ListsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const GameServer_Status_ListsEntry_DoNotUse& other); - static const GameServer_Status_ListsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_GameServer_Status_ListsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "agones.dev.sdk.GameServer.Status.ListsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_sdk_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status) */ { +class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status) */ { public: inline GameServer_Status() : GameServer_Status(nullptr) {} ~GameServer_Status() override; - template - explicit PROTOBUF_CONSTEXPR GameServer_Status(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer_Status(const GameServer_Status& from); - GameServer_Status(GameServer_Status&& from) noexcept - : GameServer_Status() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GameServer_Status( + ::google::protobuf::internal::ConstantInitialized); + inline GameServer_Status(const GameServer_Status& from) : GameServer_Status(nullptr, from) {} + inline GameServer_Status(GameServer_Status&& from) noexcept + : GameServer_Status(nullptr, std::move(from)) {} inline GameServer_Status& operator=(const GameServer_Status& from) { CopyFrom(from); return *this; } inline GameServer_Status& operator=(GameServer_Status&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2364,20 +2414,22 @@ class AGONES_EXPORT GameServer_Status final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GameServer_Status& default_instance() { @@ -2385,86 +2437,82 @@ class AGONES_EXPORT GameServer_Status final : } static inline const GameServer_Status* internal_default_instance() { return reinterpret_cast( - &_GameServer_Status_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(GameServer_Status& a, GameServer_Status& b) { - a.Swap(&b); + &_GameServer_Status_default_instance_); } + static constexpr int kIndexInFileMessages = 15; + friend void swap(GameServer_Status& a, GameServer_Status& b) { a.Swap(&b); } inline void Swap(GameServer_Status* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GameServer_Status* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer_Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GameServer_Status* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GameServer_Status& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer_Status& from) { - GameServer_Status::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer_Status& from) { GameServer_Status::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(GameServer_Status* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer.Status"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status"; } + + protected: + explicit GameServer_Status(::google::protobuf::Arena* arena); + GameServer_Status(::google::protobuf::Arena* arena, const GameServer_Status& from); + GameServer_Status(::google::protobuf::Arena* arena, GameServer_Status&& from) noexcept + : GameServer_Status(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer_Status(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef GameServer_Status_Address Address; - typedef GameServer_Status_Port Port; - typedef GameServer_Status_PlayerStatus PlayerStatus; - typedef GameServer_Status_CounterStatus CounterStatus; - typedef GameServer_Status_ListStatus ListStatus; + using Address = GameServer_Status_Address; + using Port = GameServer_Status_Port; + using PlayerStatus = GameServer_Status_PlayerStatus; + using CounterStatus = GameServer_Status_CounterStatus; + using ListStatus = GameServer_Status_ListStatus; // accessors ------------------------------------------------------- - enum : int { kPortsFieldNumber = 3, kCountersFieldNumber = 5, @@ -2482,18 +2530,15 @@ class AGONES_EXPORT GameServer_Status final : public: void clear_ports() ; ::agones::dev::sdk::GameServer_Status_Port* mutable_ports(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port >* - mutable_ports(); + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* mutable_ports(); + private: - const ::agones::dev::sdk::GameServer_Status_Port& _internal_ports(int index) const; - ::agones::dev::sdk::GameServer_Status_Port* _internal_add_ports(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& _internal_ports() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* _internal_mutable_ports(); + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& _internal_ports() const; + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* _internal_mutable_ports(); public: const ::agones::dev::sdk::GameServer_Status_Port& ports(int index) const; ::agones::dev::sdk::GameServer_Status_Port* add_ports(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port >& - ports() const; + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& ports() const; // map counters = 5; int counters_size() const; private: @@ -2501,16 +2546,14 @@ class AGONES_EXPORT GameServer_Status final : public: void clear_counters() ; + const ::google::protobuf::Map& counters() const; + ::google::protobuf::Map* mutable_counters(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >& - _internal_counters() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >* - _internal_mutable_counters(); + const ::google::protobuf::Map& _internal_counters() const; + ::google::protobuf::Map* _internal_mutable_counters(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >& - counters() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >* - mutable_counters(); // map lists = 6; int lists_size() const; private: @@ -2518,16 +2561,14 @@ class AGONES_EXPORT GameServer_Status final : public: void clear_lists() ; + const ::google::protobuf::Map& lists() const; + ::google::protobuf::Map* mutable_lists(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >& - _internal_lists() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >* - _internal_mutable_lists(); + const ::google::protobuf::Map& _internal_lists() const; + ::google::protobuf::Map* _internal_mutable_lists(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >& - lists() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >* - mutable_lists(); // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; int addresses_size() const; private: @@ -2536,30 +2577,23 @@ class AGONES_EXPORT GameServer_Status final : public: void clear_addresses() ; ::agones::dev::sdk::GameServer_Status_Address* mutable_addresses(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address >* - mutable_addresses(); + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* mutable_addresses(); + private: - const ::agones::dev::sdk::GameServer_Status_Address& _internal_addresses(int index) const; - ::agones::dev::sdk::GameServer_Status_Address* _internal_add_addresses(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& _internal_addresses() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* _internal_mutable_addresses(); + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& _internal_addresses() const; + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* _internal_mutable_addresses(); public: const ::agones::dev::sdk::GameServer_Status_Address& addresses(int index) const; ::agones::dev::sdk::GameServer_Status_Address* add_addresses(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address >& - addresses() const; + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& addresses() const; // string state = 1; void clear_state() ; const std::string& state() const; - - - - template void set_state(Arg_&& arg, Args_... args); std::string* mutable_state(); PROTOBUF_NODISCARD std::string* release_state(); - void set_allocated_state(std::string* ptr); + void set_allocated_state(std::string* value); private: const std::string& _internal_state() const; @@ -2571,15 +2605,11 @@ class AGONES_EXPORT GameServer_Status final : // string address = 2; void clear_address() ; const std::string& address() const; - - - - template void set_address(Arg_&& arg, Args_... args); std::string* mutable_address(); PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* ptr); + void set_allocated_address(std::string* value); private: const std::string& _internal_address() const; @@ -2594,68 +2624,80 @@ class AGONES_EXPORT GameServer_Status final : const ::agones::dev::sdk::GameServer_Status_PlayerStatus& players() const; PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_Status_PlayerStatus* release_players(); ::agones::dev::sdk::GameServer_Status_PlayerStatus* mutable_players(); - void set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* players); + void set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* value); + void unsafe_arena_set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* value); + ::agones::dev::sdk::GameServer_Status_PlayerStatus* unsafe_arena_release_players(); + private: const ::agones::dev::sdk::GameServer_Status_PlayerStatus& _internal_players() const; ::agones::dev::sdk::GameServer_Status_PlayerStatus* _internal_mutable_players(); + public: - void unsafe_arena_set_allocated_players( - ::agones::dev::sdk::GameServer_Status_PlayerStatus* players); - ::agones::dev::sdk::GameServer_Status_PlayerStatus* unsafe_arena_release_players(); // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 7, 7, + 66, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port > ports_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - GameServer_Status_CountersEntry_DoNotUse, - std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> counters_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - GameServer_Status_ListsEntry_DoNotUse, - std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> lists_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address > addresses_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port > ports_; + ::google::protobuf::internal::MapField + counters_; + ::google::protobuf::internal::MapField + lists_; + ::google::protobuf::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address > addresses_; + ::google::protobuf::internal::ArenaStringPtr state_; + ::google::protobuf::internal::ArenaStringPtr address_; ::agones::dev::sdk::GameServer_Status_PlayerStatus* players_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT GameServer final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer) */ { +class AGONES_EXPORT GameServer final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer) */ { public: inline GameServer() : GameServer(nullptr) {} ~GameServer() override; - template - explicit PROTOBUF_CONSTEXPR GameServer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - GameServer(const GameServer& from); - GameServer(GameServer&& from) noexcept - : GameServer() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR GameServer( + ::google::protobuf::internal::ConstantInitialized); + inline GameServer(const GameServer& from) : GameServer(nullptr, from) {} + inline GameServer(GameServer&& from) noexcept + : GameServer(nullptr, std::move(from)) {} inline GameServer& operator=(const GameServer& from) { CopyFrom(from); return *this; } inline GameServer& operator=(GameServer&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2664,20 +2706,22 @@ class AGONES_EXPORT GameServer final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const GameServer& default_instance() { @@ -2685,84 +2729,80 @@ class AGONES_EXPORT GameServer final : } static inline const GameServer* internal_default_instance() { return reinterpret_cast( - &_GameServer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(GameServer& a, GameServer& b) { - a.Swap(&b); + &_GameServer_default_instance_); } + static constexpr int kIndexInFileMessages = 16; + friend void swap(GameServer& a, GameServer& b) { a.Swap(&b); } inline void Swap(GameServer* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(GameServer* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - GameServer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + GameServer* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const GameServer& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const GameServer& from) { - GameServer::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GameServer& from) { GameServer::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(GameServer* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "agones.dev.sdk.GameServer"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer"; } + + protected: + explicit GameServer(::google::protobuf::Arena* arena); + GameServer(::google::protobuf::Arena* arena, const GameServer& from); + GameServer(::google::protobuf::Arena* arena, GameServer&& from) noexcept + : GameServer(arena) { + *this = ::std::move(from); } - protected: - explicit GameServer(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef GameServer_ObjectMeta ObjectMeta; - typedef GameServer_Spec Spec; - typedef GameServer_Status Status; + using ObjectMeta = GameServer_ObjectMeta; + using Spec = GameServer_Spec; + using Status = GameServer_Status; // accessors ------------------------------------------------------- - enum : int { kObjectMetaFieldNumber = 1, kSpecFieldNumber = 2, @@ -2774,55 +2814,72 @@ class AGONES_EXPORT GameServer final : const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta() const; PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_ObjectMeta* release_object_meta(); ::agones::dev::sdk::GameServer_ObjectMeta* mutable_object_meta(); - void set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* object_meta); + void set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* value); + void unsafe_arena_set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* value); + ::agones::dev::sdk::GameServer_ObjectMeta* unsafe_arena_release_object_meta(); + private: const ::agones::dev::sdk::GameServer_ObjectMeta& _internal_object_meta() const; ::agones::dev::sdk::GameServer_ObjectMeta* _internal_mutable_object_meta(); + public: - void unsafe_arena_set_allocated_object_meta( - ::agones::dev::sdk::GameServer_ObjectMeta* object_meta); - ::agones::dev::sdk::GameServer_ObjectMeta* unsafe_arena_release_object_meta(); // .agones.dev.sdk.GameServer.Spec spec = 2; bool has_spec() const; void clear_spec() ; const ::agones::dev::sdk::GameServer_Spec& spec() const; PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_Spec* release_spec(); ::agones::dev::sdk::GameServer_Spec* mutable_spec(); - void set_allocated_spec(::agones::dev::sdk::GameServer_Spec* spec); + void set_allocated_spec(::agones::dev::sdk::GameServer_Spec* value); + void unsafe_arena_set_allocated_spec(::agones::dev::sdk::GameServer_Spec* value); + ::agones::dev::sdk::GameServer_Spec* unsafe_arena_release_spec(); + private: const ::agones::dev::sdk::GameServer_Spec& _internal_spec() const; ::agones::dev::sdk::GameServer_Spec* _internal_mutable_spec(); + public: - void unsafe_arena_set_allocated_spec( - ::agones::dev::sdk::GameServer_Spec* spec); - ::agones::dev::sdk::GameServer_Spec* unsafe_arena_release_spec(); // .agones.dev.sdk.GameServer.Status status = 3; bool has_status() const; void clear_status() ; const ::agones::dev::sdk::GameServer_Status& status() const; PROTOBUF_NODISCARD ::agones::dev::sdk::GameServer_Status* release_status(); ::agones::dev::sdk::GameServer_Status* mutable_status(); - void set_allocated_status(::agones::dev::sdk::GameServer_Status* status); + void set_allocated_status(::agones::dev::sdk::GameServer_Status* value); + void unsafe_arena_set_allocated_status(::agones::dev::sdk::GameServer_Status* value); + ::agones::dev::sdk::GameServer_Status* unsafe_arena_release_status(); + private: const ::agones::dev::sdk::GameServer_Status& _internal_status() const; ::agones::dev::sdk::GameServer_Status* _internal_mutable_status(); + public: - void unsafe_arena_set_allocated_status( - ::agones::dev::sdk::GameServer_Status* status); - ::agones::dev::sdk::GameServer_Status* unsafe_arena_release_status(); // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 3, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::agones::dev::sdk::GameServer_ObjectMeta* object_meta_; ::agones::dev::sdk::GameServer_Spec* spec_; ::agones::dev::sdk::GameServer_Status* status_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; @@ -2850,46 +2907,49 @@ class AGONES_EXPORT GameServer final : // string key = 1; inline void KeyValue::clear_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.key_.ClearToEmpty(); } -inline const std::string& KeyValue::key() const { +inline const std::string& KeyValue::key() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.KeyValue.key) return _internal_key(); } template inline PROTOBUF_ALWAYS_INLINE void KeyValue::set_key(Arg_&& arg, Args_... args) { - ; - _impl_.key_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.key) } -inline std::string* KeyValue::mutable_key() { +inline std::string* KeyValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.key) return _s; } inline const std::string& KeyValue::_internal_key() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.key_.Get(); } inline void KeyValue::_internal_set_key(const std::string& value) { - ; - - - _impl_.key_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.Set(value, GetArena()); } inline std::string* KeyValue::_internal_mutable_key() { - ; - return _impl_.key_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.key_.Mutable( GetArena()); } inline std::string* KeyValue::release_key() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.key) return _impl_.key_.Release(); } inline void KeyValue::set_allocated_key(std::string* value) { - _impl_.key_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.key_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.key_.IsDefault()) { - _impl_.key_.Set("", GetArenaForAllocation()); + _impl_.key_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.KeyValue.key) @@ -2897,46 +2957,49 @@ inline void KeyValue::set_allocated_key(std::string* value) { // string value = 2; inline void KeyValue::clear_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.value_.ClearToEmpty(); } -inline const std::string& KeyValue::value() const { +inline const std::string& KeyValue::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.KeyValue.value) return _internal_value(); } template inline PROTOBUF_ALWAYS_INLINE void KeyValue::set_value(Arg_&& arg, Args_... args) { - ; - _impl_.value_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.value) } -inline std::string* KeyValue::mutable_value() { +inline std::string* KeyValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.value) return _s; } inline const std::string& KeyValue::_internal_value() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.value_.Get(); } inline void KeyValue::_internal_set_value(const std::string& value) { - ; - - - _impl_.value_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.Set(value, GetArena()); } inline std::string* KeyValue::_internal_mutable_value() { - ; - return _impl_.value_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.value_.Mutable( GetArena()); } inline std::string* KeyValue::release_value() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.value) return _impl_.value_.Release(); } inline void KeyValue::set_allocated_value(std::string* value) { - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.value_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.KeyValue.value) @@ -2948,6 +3011,7 @@ inline void KeyValue::set_allocated_value(std::string* value) { // int64 seconds = 1; inline void Duration::clear_seconds() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.seconds_ = ::int64_t{0}; } inline ::int64_t Duration::seconds() const { @@ -2959,10 +3023,11 @@ inline void Duration::set_seconds(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.Duration.seconds) } inline ::int64_t Duration::_internal_seconds() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.seconds_; } inline void Duration::_internal_set_seconds(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.seconds_ = value; } @@ -2976,46 +3041,49 @@ inline void Duration::_internal_set_seconds(::int64_t value) { // string name = 1; inline void GameServer_ObjectMeta::clear_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.name_.ClearToEmpty(); } -inline const std::string& GameServer_ObjectMeta::name() const { +inline const std::string& GameServer_ObjectMeta::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_name(Arg_&& arg, Args_... args) { - ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.name) } -inline std::string* GameServer_ObjectMeta::mutable_name() { +inline std::string* GameServer_ObjectMeta::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.name) return _s; } inline const std::string& GameServer_ObjectMeta::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.name_.Get(); } inline void GameServer_ObjectMeta::_internal_set_name(const std::string& value) { - ; - - - _impl_.name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); } inline std::string* GameServer_ObjectMeta::_internal_mutable_name() { - ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* GameServer_ObjectMeta::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.name) return _impl_.name_.Release(); } inline void GameServer_ObjectMeta::set_allocated_name(std::string* value) { - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.name) @@ -3023,46 +3091,49 @@ inline void GameServer_ObjectMeta::set_allocated_name(std::string* value) { // string namespace = 2; inline void GameServer_ObjectMeta::clear_namespace_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.namespace__.ClearToEmpty(); } -inline const std::string& GameServer_ObjectMeta::namespace_() const { +inline const std::string& GameServer_ObjectMeta::namespace_() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.namespace) return _internal_namespace_(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_namespace_(Arg_&& arg, Args_... args) { - ; - _impl_.namespace__.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.namespace) } -inline std::string* GameServer_ObjectMeta::mutable_namespace_() { +inline std::string* GameServer_ObjectMeta::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.namespace) return _s; } inline const std::string& GameServer_ObjectMeta::_internal_namespace_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.namespace__.Get(); } inline void GameServer_ObjectMeta::_internal_set_namespace_(const std::string& value) { - ; - - - _impl_.namespace__.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.namespace__.Set(value, GetArena()); } inline std::string* GameServer_ObjectMeta::_internal_mutable_namespace_() { - ; - return _impl_.namespace__.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.namespace__.Mutable( GetArena()); } inline std::string* GameServer_ObjectMeta::release_namespace_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.namespace) return _impl_.namespace__.Release(); } inline void GameServer_ObjectMeta::set_allocated_namespace_(std::string* value) { - _impl_.namespace__.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.namespace__.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.namespace__.IsDefault()) { - _impl_.namespace__.Set("", GetArenaForAllocation()); + _impl_.namespace__.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.namespace) @@ -3070,46 +3141,49 @@ inline void GameServer_ObjectMeta::set_allocated_namespace_(std::string* value) // string uid = 3; inline void GameServer_ObjectMeta::clear_uid() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.uid_.ClearToEmpty(); } -inline const std::string& GameServer_ObjectMeta::uid() const { +inline const std::string& GameServer_ObjectMeta::uid() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.uid) return _internal_uid(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_uid(Arg_&& arg, Args_... args) { - ; - _impl_.uid_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.uid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.uid) } -inline std::string* GameServer_ObjectMeta::mutable_uid() { +inline std::string* GameServer_ObjectMeta::mutable_uid() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_uid(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.uid) return _s; } inline const std::string& GameServer_ObjectMeta::_internal_uid() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.uid_.Get(); } inline void GameServer_ObjectMeta::_internal_set_uid(const std::string& value) { - ; - - - _impl_.uid_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.uid_.Set(value, GetArena()); } inline std::string* GameServer_ObjectMeta::_internal_mutable_uid() { - ; - return _impl_.uid_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.uid_.Mutable( GetArena()); } inline std::string* GameServer_ObjectMeta::release_uid() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.uid) return _impl_.uid_.Release(); } inline void GameServer_ObjectMeta::set_allocated_uid(std::string* value) { - _impl_.uid_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.uid_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.uid_.IsDefault()) { - _impl_.uid_.Set("", GetArenaForAllocation()); + _impl_.uid_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.uid) @@ -3117,46 +3191,49 @@ inline void GameServer_ObjectMeta::set_allocated_uid(std::string* value) { // string resource_version = 4; inline void GameServer_ObjectMeta::clear_resource_version() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.resource_version_.ClearToEmpty(); } -inline const std::string& GameServer_ObjectMeta::resource_version() const { +inline const std::string& GameServer_ObjectMeta::resource_version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.resource_version) return _internal_resource_version(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_resource_version(Arg_&& arg, Args_... args) { - ; - _impl_.resource_version_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } -inline std::string* GameServer_ObjectMeta::mutable_resource_version() { +inline std::string* GameServer_ObjectMeta::mutable_resource_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_resource_version(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.resource_version) return _s; } inline const std::string& GameServer_ObjectMeta::_internal_resource_version() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.resource_version_.Get(); } inline void GameServer_ObjectMeta::_internal_set_resource_version(const std::string& value) { - ; - - - _impl_.resource_version_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_version_.Set(value, GetArena()); } inline std::string* GameServer_ObjectMeta::_internal_mutable_resource_version() { - ; - return _impl_.resource_version_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.resource_version_.Mutable( GetArena()); } inline std::string* GameServer_ObjectMeta::release_resource_version() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.resource_version) return _impl_.resource_version_.Release(); } inline void GameServer_ObjectMeta::set_allocated_resource_version(std::string* value) { - _impl_.resource_version_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.resource_version_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.resource_version_.IsDefault()) { - _impl_.resource_version_.Set("", GetArenaForAllocation()); + _impl_.resource_version_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.ObjectMeta.resource_version) @@ -3164,6 +3241,7 @@ inline void GameServer_ObjectMeta::set_allocated_resource_version(std::string* v // int64 generation = 5; inline void GameServer_ObjectMeta::clear_generation() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.generation_ = ::int64_t{0}; } inline ::int64_t GameServer_ObjectMeta::generation() const { @@ -3175,15 +3253,17 @@ inline void GameServer_ObjectMeta::set_generation(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.generation) } inline ::int64_t GameServer_ObjectMeta::_internal_generation() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.generation_; } inline void GameServer_ObjectMeta::_internal_set_generation(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.generation_ = value; } // int64 creation_timestamp = 6; inline void GameServer_ObjectMeta::clear_creation_timestamp() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.creation_timestamp_ = ::int64_t{0}; } inline ::int64_t GameServer_ObjectMeta::creation_timestamp() const { @@ -3195,15 +3275,17 @@ inline void GameServer_ObjectMeta::set_creation_timestamp(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.creation_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_creation_timestamp() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.creation_timestamp_; } inline void GameServer_ObjectMeta::_internal_set_creation_timestamp(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.creation_timestamp_ = value; } // int64 deletion_timestamp = 7; inline void GameServer_ObjectMeta::clear_deletion_timestamp() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.deletion_timestamp_ = ::int64_t{0}; } inline ::int64_t GameServer_ObjectMeta::deletion_timestamp() const { @@ -3215,67 +3297,66 @@ inline void GameServer_ObjectMeta::set_deletion_timestamp(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.deletion_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_deletion_timestamp() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.deletion_timestamp_; } inline void GameServer_ObjectMeta::_internal_set_deletion_timestamp(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.deletion_timestamp_ = value; } // map annotations = 8; inline int GameServer_ObjectMeta::_internal_annotations_size() const { - return _impl_.annotations_.size(); + return _internal_annotations().size(); } inline int GameServer_ObjectMeta::annotations_size() const { return _internal_annotations_size(); } inline void GameServer_ObjectMeta::clear_annotations() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.annotations_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -GameServer_ObjectMeta::_internal_annotations() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_annotations() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.annotations_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -GameServer_ObjectMeta::annotations() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::annotations() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.ObjectMeta.annotations) return _internal_annotations(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -GameServer_ObjectMeta::_internal_mutable_annotations() { +inline ::google::protobuf::Map* GameServer_ObjectMeta::_internal_mutable_annotations() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.annotations_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -GameServer_ObjectMeta::mutable_annotations() { +inline ::google::protobuf::Map* GameServer_ObjectMeta::mutable_annotations() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.annotations) return _internal_mutable_annotations(); } // map labels = 9; inline int GameServer_ObjectMeta::_internal_labels_size() const { - return _impl_.labels_.size(); + return _internal_labels().size(); } inline int GameServer_ObjectMeta::labels_size() const { return _internal_labels_size(); } inline void GameServer_ObjectMeta::clear_labels() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.labels_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -GameServer_ObjectMeta::_internal_labels() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_labels() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.labels_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -GameServer_ObjectMeta::labels() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.ObjectMeta.labels) return _internal_labels(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -GameServer_ObjectMeta::_internal_mutable_labels() { +inline ::google::protobuf::Map* GameServer_ObjectMeta::_internal_mutable_labels() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.labels_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -GameServer_ObjectMeta::mutable_labels() { +inline ::google::protobuf::Map* GameServer_ObjectMeta::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.labels) return _internal_mutable_labels(); } @@ -3286,6 +3367,7 @@ GameServer_ObjectMeta::mutable_labels() { // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { inline void GameServer_Spec_Health::clear_disabled() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.disabled_ = false; } inline bool GameServer_Spec_Health::disabled() const { @@ -3297,15 +3379,17 @@ inline void GameServer_Spec_Health::set_disabled(bool value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.disabled) } inline bool GameServer_Spec_Health::_internal_disabled() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.disabled_; } inline void GameServer_Spec_Health::_internal_set_disabled(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.disabled_ = value; } // int32 period_seconds = 2; inline void GameServer_Spec_Health::clear_period_seconds() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.period_seconds_ = 0; } inline ::int32_t GameServer_Spec_Health::period_seconds() const { @@ -3317,15 +3401,17 @@ inline void GameServer_Spec_Health::set_period_seconds(::int32_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.period_seconds) } inline ::int32_t GameServer_Spec_Health::_internal_period_seconds() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.period_seconds_; } inline void GameServer_Spec_Health::_internal_set_period_seconds(::int32_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.period_seconds_ = value; } // int32 failure_threshold = 3; inline void GameServer_Spec_Health::clear_failure_threshold() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.failure_threshold_ = 0; } inline ::int32_t GameServer_Spec_Health::failure_threshold() const { @@ -3337,15 +3423,17 @@ inline void GameServer_Spec_Health::set_failure_threshold(::int32_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.failure_threshold) } inline ::int32_t GameServer_Spec_Health::_internal_failure_threshold() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.failure_threshold_; } inline void GameServer_Spec_Health::_internal_set_failure_threshold(::int32_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.failure_threshold_ = value; } // int32 initial_delay_seconds = 4; inline void GameServer_Spec_Health::clear_initial_delay_seconds() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.initial_delay_seconds_ = 0; } inline ::int32_t GameServer_Spec_Health::initial_delay_seconds() const { @@ -3357,10 +3445,11 @@ inline void GameServer_Spec_Health::set_initial_delay_seconds(::int32_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.initial_delay_seconds) } inline ::int32_t GameServer_Spec_Health::_internal_initial_delay_seconds() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.initial_delay_seconds_; } inline void GameServer_Spec_Health::_internal_set_initial_delay_seconds(::int32_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.initial_delay_seconds_ = value; } @@ -3375,25 +3464,26 @@ inline bool GameServer_Spec::has_health() const { return value; } inline void GameServer_Spec::clear_health() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.health_ != nullptr) _impl_.health_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::_internal_health() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::agones::dev::sdk::GameServer_Spec_Health* p = _impl_.health_; - return p != nullptr ? *p : reinterpret_cast( - ::agones::dev::sdk::_GameServer_Spec_Health_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Spec_Health_default_instance_); } -inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::health() const { +inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::health() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.health) return _internal_health(); } -inline void GameServer_Spec::unsafe_arena_set_allocated_health( - ::agones::dev::sdk::GameServer_Spec_Health* health) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.health_); +inline void GameServer_Spec::unsafe_arena_set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.health_); } - _impl_.health_ = health; - if (health) { + _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -3401,57 +3491,65 @@ inline void GameServer_Spec::unsafe_arena_set_allocated_health( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Spec.health) } inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::release_health() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::agones::dev::sdk::GameServer_Spec_Health* temp = _impl_.health_; + ::agones::dev::sdk::GameServer_Spec_Health* released = _impl_.health_; _impl_.health_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::unsafe_arena_release_health() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Spec.health) + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_Spec_Health* temp = _impl_.health_; _impl_.health_ = nullptr; return temp; } inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::_internal_mutable_health() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.health_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec_Health>(GetArenaForAllocation()); - _impl_.health_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::agones::dev::sdk::GameServer_Spec_Health>(GetArena()); + _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(p); } return _impl_.health_; } -inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::mutable_health() { +inline ::agones::dev::sdk::GameServer_Spec_Health* GameServer_Spec::mutable_health() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::agones::dev::sdk::GameServer_Spec_Health* _msg = _internal_mutable_health(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Spec.health) return _msg; } -inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* health) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.health_; + delete (_impl_.health_); } - if (health) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(health); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - health = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, health, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.health_ = health; + + _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Spec.health) } @@ -3461,46 +3559,49 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer // string type = 1; inline void GameServer_Status_Address::clear_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_.ClearToEmpty(); } -inline const std::string& GameServer_Status_Address::type() const { +inline const std::string& GameServer_Status_Address::type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Address.type) return _internal_type(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_type(Arg_&& arg, Args_... args) { - ; - _impl_.type_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.type) } -inline std::string* GameServer_Status_Address::mutable_type() { +inline std::string* GameServer_Status_Address::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.type) return _s; } inline const std::string& GameServer_Status_Address::_internal_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.type_.Get(); } inline void GameServer_Status_Address::_internal_set_type(const std::string& value) { - ; - - - _impl_.type_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.Set(value, GetArena()); } inline std::string* GameServer_Status_Address::_internal_mutable_type() { - ; - return _impl_.type_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.type_.Mutable( GetArena()); } inline std::string* GameServer_Status_Address::release_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.type) return _impl_.type_.Release(); } inline void GameServer_Status_Address::set_allocated_type(std::string* value) { - _impl_.type_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArenaForAllocation()); + _impl_.type_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.Address.type) @@ -3508,46 +3609,49 @@ inline void GameServer_Status_Address::set_allocated_type(std::string* value) { // string address = 2; inline void GameServer_Status_Address::clear_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.address_.ClearToEmpty(); } -inline const std::string& GameServer_Status_Address::address() const { +inline const std::string& GameServer_Status_Address::address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Address.address) return _internal_address(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_address(Arg_&& arg, Args_... args) { - ; - _impl_.address_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.address) } -inline std::string* GameServer_Status_Address::mutable_address() { +inline std::string* GameServer_Status_Address::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.address) return _s; } inline const std::string& GameServer_Status_Address::_internal_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.address_.Get(); } inline void GameServer_Status_Address::_internal_set_address(const std::string& value) { - ; - - - _impl_.address_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.Set(value, GetArena()); } inline std::string* GameServer_Status_Address::_internal_mutable_address() { - ; - return _impl_.address_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.address_.Mutable( GetArena()); } inline std::string* GameServer_Status_Address::release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.address) return _impl_.address_.Release(); } inline void GameServer_Status_Address::set_allocated_address(std::string* value) { - _impl_.address_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArenaForAllocation()); + _impl_.address_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.Address.address) @@ -3559,46 +3663,49 @@ inline void GameServer_Status_Address::set_allocated_address(std::string* value) // string name = 1; inline void GameServer_Status_Port::clear_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.name_.ClearToEmpty(); } -inline const std::string& GameServer_Status_Port::name() const { +inline const std::string& GameServer_Status_Port::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Port.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_Status_Port::set_name(Arg_&& arg, Args_... args) { - ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.name) } -inline std::string* GameServer_Status_Port::mutable_name() { +inline std::string* GameServer_Status_Port::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Port.name) return _s; } inline const std::string& GameServer_Status_Port::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.name_.Get(); } inline void GameServer_Status_Port::_internal_set_name(const std::string& value) { - ; - - - _impl_.name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); } inline std::string* GameServer_Status_Port::_internal_mutable_name() { - ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* GameServer_Status_Port::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Port.name) return _impl_.name_.Release(); } inline void GameServer_Status_Port::set_allocated_name(std::string* value) { - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.Port.name) @@ -3606,6 +3713,7 @@ inline void GameServer_Status_Port::set_allocated_name(std::string* value) { // int32 port = 2; inline void GameServer_Status_Port::clear_port() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.port_ = 0; } inline ::int32_t GameServer_Status_Port::port() const { @@ -3617,10 +3725,11 @@ inline void GameServer_Status_Port::set_port(::int32_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.port) } inline ::int32_t GameServer_Status_Port::_internal_port() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.port_; } inline void GameServer_Status_Port::_internal_set_port(::int32_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.port_ = value; } @@ -3630,6 +3739,7 @@ inline void GameServer_Status_Port::_internal_set_port(::int32_t value) { // int64 count = 1; inline void GameServer_Status_PlayerStatus::clear_count() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.count_ = ::int64_t{0}; } inline ::int64_t GameServer_Status_PlayerStatus::count() const { @@ -3641,15 +3751,17 @@ inline void GameServer_Status_PlayerStatus::set_count(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.PlayerStatus.count) } inline ::int64_t GameServer_Status_PlayerStatus::_internal_count() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.count_; } inline void GameServer_Status_PlayerStatus::_internal_set_count(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.count_ = value; } // int64 capacity = 2; inline void GameServer_Status_PlayerStatus::clear_capacity() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = ::int64_t{0}; } inline ::int64_t GameServer_Status_PlayerStatus::capacity() const { @@ -3661,33 +3773,39 @@ inline void GameServer_Status_PlayerStatus::set_capacity(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.PlayerStatus.capacity) } inline ::int64_t GameServer_Status_PlayerStatus::_internal_capacity() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.capacity_; } inline void GameServer_Status_PlayerStatus::_internal_set_capacity(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = value; } // repeated string ids = 3; inline int GameServer_Status_PlayerStatus::_internal_ids_size() const { - return _impl_.ids_.size(); + return _internal_ids().size(); } inline int GameServer_Status_PlayerStatus::ids_size() const { return _internal_ids_size(); } inline void GameServer_Status_PlayerStatus::clear_ids() { - _internal_mutable_ids()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ids_.Clear(); } -inline std::string* GameServer_Status_PlayerStatus::add_ids() { - std::string* _s = _internal_add_ids(); +inline std::string* GameServer_Status_PlayerStatus::add_ids() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_ids()->Add(); // @@protoc_insertion_point(field_add_mutable:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) return _s; } -inline const std::string& GameServer_Status_PlayerStatus::ids(int index) const { +inline const std::string& GameServer_Status_PlayerStatus::ids(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) - return _internal_ids(index); + return _internal_ids().Get(index); } -inline std::string* GameServer_Status_PlayerStatus::mutable_ids(int index) { +inline std::string* GameServer_Status_PlayerStatus::mutable_ids(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) return _internal_mutable_ids()->Mutable(index); } @@ -3711,53 +3829,57 @@ inline void GameServer_Status_PlayerStatus::set_ids(int index, const char* value // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::set_ids(int index, absl::string_view value) { - _internal_mutable_ids()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_ids()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::add_ids(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_ids()->Add()->assign(value); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::add_ids(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_ids()->Add(std::move(value)); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::add_ids(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_ids()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::add_ids(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_ids()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } inline void GameServer_Status_PlayerStatus::add_ids(absl::string_view value) { - _internal_mutable_ids()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_ids()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -GameServer_Status_PlayerStatus::ids() const { +inline const ::google::protobuf::RepeatedPtrField& +GameServer_Status_PlayerStatus::ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) return _internal_ids(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* GameServer_Status_PlayerStatus::mutable_ids() { +inline ::google::protobuf::RepeatedPtrField* +GameServer_Status_PlayerStatus::mutable_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_ids(); } -inline const std::string& GameServer_Status_PlayerStatus::_internal_ids(int index) const { - return _internal_ids().Get(index); -} -inline std::string* GameServer_Status_PlayerStatus::_internal_add_ids() { - return _internal_mutable_ids()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& GameServer_Status_PlayerStatus::_internal_ids() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.ids_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* GameServer_Status_PlayerStatus::_internal_mutable_ids() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.ids_; } @@ -3767,6 +3889,7 @@ GameServer_Status_PlayerStatus::_internal_mutable_ids() { // int64 count = 1; inline void GameServer_Status_CounterStatus::clear_count() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.count_ = ::int64_t{0}; } inline ::int64_t GameServer_Status_CounterStatus::count() const { @@ -3778,15 +3901,17 @@ inline void GameServer_Status_CounterStatus::set_count(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.count) } inline ::int64_t GameServer_Status_CounterStatus::_internal_count() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.count_; } inline void GameServer_Status_CounterStatus::_internal_set_count(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.count_ = value; } // int64 capacity = 2; inline void GameServer_Status_CounterStatus::clear_capacity() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = ::int64_t{0}; } inline ::int64_t GameServer_Status_CounterStatus::capacity() const { @@ -3798,10 +3923,11 @@ inline void GameServer_Status_CounterStatus::set_capacity(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.capacity) } inline ::int64_t GameServer_Status_CounterStatus::_internal_capacity() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.capacity_; } inline void GameServer_Status_CounterStatus::_internal_set_capacity(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = value; } @@ -3811,6 +3937,7 @@ inline void GameServer_Status_CounterStatus::_internal_set_capacity(::int64_t va // int64 capacity = 1; inline void GameServer_Status_ListStatus::clear_capacity() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = ::int64_t{0}; } inline ::int64_t GameServer_Status_ListStatus::capacity() const { @@ -3822,33 +3949,39 @@ inline void GameServer_Status_ListStatus::set_capacity(::int64_t value) { // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.ListStatus.capacity) } inline ::int64_t GameServer_Status_ListStatus::_internal_capacity() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.capacity_; } inline void GameServer_Status_ListStatus::_internal_set_capacity(::int64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.capacity_ = value; } // repeated string values = 2; inline int GameServer_Status_ListStatus::_internal_values_size() const { - return _impl_.values_.size(); + return _internal_values().size(); } inline int GameServer_Status_ListStatus::values_size() const { return _internal_values_size(); } inline void GameServer_Status_ListStatus::clear_values() { - _internal_mutable_values()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.values_.Clear(); } -inline std::string* GameServer_Status_ListStatus::add_values() { - std::string* _s = _internal_add_values(); +inline std::string* GameServer_Status_ListStatus::add_values() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_values()->Add(); // @@protoc_insertion_point(field_add_mutable:agones.dev.sdk.GameServer.Status.ListStatus.values) return _s; } -inline const std::string& GameServer_Status_ListStatus::values(int index) const { +inline const std::string& GameServer_Status_ListStatus::values(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.ListStatus.values) - return _internal_values(index); + return _internal_values().Get(index); } -inline std::string* GameServer_Status_ListStatus::mutable_values(int index) { +inline std::string* GameServer_Status_ListStatus::mutable_values(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.ListStatus.values) return _internal_mutable_values()->Mutable(index); } @@ -3872,53 +4005,57 @@ inline void GameServer_Status_ListStatus::set_values(int index, const char* valu // @@protoc_insertion_point(field_set_pointer:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::set_values(int index, absl::string_view value) { - _internal_mutable_values()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_values()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::add_values(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_values()->Add()->assign(value); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::add_values(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_values()->Add(std::move(value)); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::add_values(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_values()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::add_values(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_values()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline void GameServer_Status_ListStatus::add_values(absl::string_view value) { - _internal_mutable_values()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_values()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:agones.dev.sdk.GameServer.Status.ListStatus.values) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -GameServer_Status_ListStatus::values() const { +inline const ::google::protobuf::RepeatedPtrField& +GameServer_Status_ListStatus::values() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.ListStatus.values) return _internal_values(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* GameServer_Status_ListStatus::mutable_values() { +inline ::google::protobuf::RepeatedPtrField* +GameServer_Status_ListStatus::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ListStatus.values) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_values(); } -inline const std::string& GameServer_Status_ListStatus::_internal_values(int index) const { - return _internal_values().Get(index); -} -inline std::string* GameServer_Status_ListStatus::_internal_add_values() { - return _internal_mutable_values()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& GameServer_Status_ListStatus::_internal_values() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.values_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* GameServer_Status_ListStatus::_internal_mutable_values() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.values_; } @@ -3932,46 +4069,49 @@ GameServer_Status_ListStatus::_internal_mutable_values() { // string state = 1; inline void GameServer_Status::clear_state() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.state_.ClearToEmpty(); } -inline const std::string& GameServer_Status::state() const { +inline const std::string& GameServer_Status::state() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.state) return _internal_state(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_state(Arg_&& arg, Args_... args) { - ; - _impl_.state_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.state_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.state) } -inline std::string* GameServer_Status::mutable_state() { +inline std::string* GameServer_Status::mutable_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_state(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.state) return _s; } inline const std::string& GameServer_Status::_internal_state() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.state_.Get(); } inline void GameServer_Status::_internal_set_state(const std::string& value) { - ; - - - _impl_.state_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.state_.Set(value, GetArena()); } inline std::string* GameServer_Status::_internal_mutable_state() { - ; - return _impl_.state_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.state_.Mutable( GetArena()); } inline std::string* GameServer_Status::release_state() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.state) return _impl_.state_.Release(); } inline void GameServer_Status::set_allocated_state(std::string* value) { - _impl_.state_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.state_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.state_.IsDefault()) { - _impl_.state_.Set("", GetArenaForAllocation()); + _impl_.state_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.state) @@ -3979,46 +4119,49 @@ inline void GameServer_Status::set_allocated_state(std::string* value) { // string address = 2; inline void GameServer_Status::clear_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.address_.ClearToEmpty(); } -inline const std::string& GameServer_Status::address() const { +inline const std::string& GameServer_Status::address() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.address) return _internal_address(); } template inline PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_address(Arg_&& arg, Args_... args) { - ; - _impl_.address_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.address) } -inline std::string* GameServer_Status::mutable_address() { +inline std::string* GameServer_Status::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.address) return _s; } inline const std::string& GameServer_Status::_internal_address() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.address_.Get(); } inline void GameServer_Status::_internal_set_address(const std::string& value) { - ; - - - _impl_.address_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.Set(value, GetArena()); } inline std::string* GameServer_Status::_internal_mutable_address() { - ; - return _impl_.address_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.address_.Mutable( GetArena()); } inline std::string* GameServer_Status::release_address() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.address) return _impl_.address_.Release(); } inline void GameServer_Status::set_allocated_address(std::string* value) { - _impl_.address_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.address_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArenaForAllocation()); + _impl_.address_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.address) @@ -4026,97 +4169,99 @@ inline void GameServer_Status::set_allocated_address(std::string* value) { // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; inline int GameServer_Status::_internal_addresses_size() const { - return _impl_.addresses_.size(); + return _internal_addresses().size(); } inline int GameServer_Status::addresses_size() const { return _internal_addresses_size(); } inline void GameServer_Status::clear_addresses() { - _internal_mutable_addresses()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.addresses_.Clear(); } -inline ::agones::dev::sdk::GameServer_Status_Address* GameServer_Status::mutable_addresses(int index) { +inline ::agones::dev::sdk::GameServer_Status_Address* GameServer_Status::mutable_addresses(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.addresses) return _internal_mutable_addresses()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address >* -GameServer_Status::mutable_addresses() { +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* GameServer_Status::mutable_addresses() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.addresses) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_addresses(); } -inline const ::agones::dev::sdk::GameServer_Status_Address& GameServer_Status::_internal_addresses(int index) const { - return _internal_addresses().Get(index); -} -inline const ::agones::dev::sdk::GameServer_Status_Address& GameServer_Status::addresses(int index) const { +inline const ::agones::dev::sdk::GameServer_Status_Address& GameServer_Status::addresses(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.addresses) - return _internal_addresses(index); -} -inline ::agones::dev::sdk::GameServer_Status_Address* GameServer_Status::_internal_add_addresses() { - return _internal_mutable_addresses()->Add(); + return _internal_addresses().Get(index); } -inline ::agones::dev::sdk::GameServer_Status_Address* GameServer_Status::add_addresses() { - ::agones::dev::sdk::GameServer_Status_Address* _add = _internal_add_addresses(); +inline ::agones::dev::sdk::GameServer_Status_Address* GameServer_Status::add_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::agones::dev::sdk::GameServer_Status_Address* _add = _internal_mutable_addresses()->Add(); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.addresses) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Address >& -GameServer_Status::addresses() const { +inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& GameServer_Status::addresses() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.addresses) return _internal_addresses(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& +inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& GameServer_Status::_internal_addresses() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.addresses_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* GameServer_Status::_internal_mutable_addresses() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.addresses_; } // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; inline int GameServer_Status::_internal_ports_size() const { - return _impl_.ports_.size(); + return _internal_ports().size(); } inline int GameServer_Status::ports_size() const { return _internal_ports_size(); } inline void GameServer_Status::clear_ports() { - _internal_mutable_ports()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ports_.Clear(); } -inline ::agones::dev::sdk::GameServer_Status_Port* GameServer_Status::mutable_ports(int index) { +inline ::agones::dev::sdk::GameServer_Status_Port* GameServer_Status::mutable_ports(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.ports) return _internal_mutable_ports()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port >* -GameServer_Status::mutable_ports() { +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* GameServer_Status::mutable_ports() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ports) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_ports(); } -inline const ::agones::dev::sdk::GameServer_Status_Port& GameServer_Status::_internal_ports(int index) const { - return _internal_ports().Get(index); -} -inline const ::agones::dev::sdk::GameServer_Status_Port& GameServer_Status::ports(int index) const { +inline const ::agones::dev::sdk::GameServer_Status_Port& GameServer_Status::ports(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.ports) - return _internal_ports(index); -} -inline ::agones::dev::sdk::GameServer_Status_Port* GameServer_Status::_internal_add_ports() { - return _internal_mutable_ports()->Add(); + return _internal_ports().Get(index); } -inline ::agones::dev::sdk::GameServer_Status_Port* GameServer_Status::add_ports() { - ::agones::dev::sdk::GameServer_Status_Port* _add = _internal_add_ports(); +inline ::agones::dev::sdk::GameServer_Status_Port* GameServer_Status::add_ports() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::agones::dev::sdk::GameServer_Status_Port* _add = _internal_mutable_ports()->Add(); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ports) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::agones::dev::sdk::GameServer_Status_Port >& -GameServer_Status::ports() const { +inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& GameServer_Status::ports() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.ports) return _internal_ports(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& +inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& GameServer_Status::_internal_ports() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.ports_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* GameServer_Status::_internal_mutable_ports() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.ports_; } @@ -4127,25 +4272,26 @@ inline bool GameServer_Status::has_players() const { return value; } inline void GameServer_Status::clear_players() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.players_ != nullptr) _impl_.players_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::_internal_players() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::agones::dev::sdk::GameServer_Status_PlayerStatus* p = _impl_.players_; - return p != nullptr ? *p : reinterpret_cast( - ::agones::dev::sdk::_GameServer_Status_PlayerStatus_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Status_PlayerStatus_default_instance_); } -inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::players() const { +inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::players() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.players) return _internal_players(); } -inline void GameServer_Status::unsafe_arena_set_allocated_players( - ::agones::dev::sdk::GameServer_Status_PlayerStatus* players) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.players_); +inline void GameServer_Status::unsafe_arena_set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.players_); } - _impl_.players_ = players; - if (players) { + _impl_.players_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status_PlayerStatus*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -4153,114 +4299,120 @@ inline void GameServer_Status::unsafe_arena_set_allocated_players( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Status.players) } inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::release_players() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::agones::dev::sdk::GameServer_Status_PlayerStatus* temp = _impl_.players_; + ::agones::dev::sdk::GameServer_Status_PlayerStatus* released = _impl_.players_; _impl_.players_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::unsafe_arena_release_players() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.players) + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_Status_PlayerStatus* temp = _impl_.players_; _impl_.players_ = nullptr; return temp; } inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::_internal_mutable_players() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.players_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status_PlayerStatus>(GetArenaForAllocation()); - _impl_.players_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::agones::dev::sdk::GameServer_Status_PlayerStatus>(GetArena()); + _impl_.players_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status_PlayerStatus*>(p); } return _impl_.players_; } -inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::mutable_players() { +inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* GameServer_Status::mutable_players() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::agones::dev::sdk::GameServer_Status_PlayerStatus* _msg = _internal_mutable_players(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.players) return _msg; } -inline void GameServer_Status::set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* players) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GameServer_Status::set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.players_; + delete (_impl_.players_); } - if (players) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(players); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - players = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, players, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.players_ = players; + + _impl_.players_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status_PlayerStatus*>(value); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.Status.players) } // map counters = 5; inline int GameServer_Status::_internal_counters_size() const { - return _impl_.counters_.size(); + return _internal_counters().size(); } inline int GameServer_Status::counters_size() const { return _internal_counters_size(); } inline void GameServer_Status::clear_counters() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.counters_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >& -GameServer_Status::_internal_counters() const { +inline const ::google::protobuf::Map& GameServer_Status::_internal_counters() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.counters_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >& -GameServer_Status::counters() const { +inline const ::google::protobuf::Map& GameServer_Status::counters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.Status.counters) return _internal_counters(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >* -GameServer_Status::_internal_mutable_counters() { +inline ::google::protobuf::Map* GameServer_Status::_internal_mutable_counters() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.counters_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >* -GameServer_Status::mutable_counters() { +inline ::google::protobuf::Map* GameServer_Status::mutable_counters() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.counters) return _internal_mutable_counters(); } // map lists = 6; inline int GameServer_Status::_internal_lists_size() const { - return _impl_.lists_.size(); + return _internal_lists().size(); } inline int GameServer_Status::lists_size() const { return _internal_lists_size(); } inline void GameServer_Status::clear_lists() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.lists_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >& -GameServer_Status::_internal_lists() const { +inline const ::google::protobuf::Map& GameServer_Status::_internal_lists() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.lists_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >& -GameServer_Status::lists() const { +inline const ::google::protobuf::Map& GameServer_Status::lists() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.Status.lists) return _internal_lists(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >* -GameServer_Status::_internal_mutable_lists() { +inline ::google::protobuf::Map* GameServer_Status::_internal_mutable_lists() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.lists_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >* -GameServer_Status::mutable_lists() { +inline ::google::protobuf::Map* GameServer_Status::mutable_lists() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.lists) return _internal_mutable_lists(); } @@ -4276,25 +4428,26 @@ inline bool GameServer::has_object_meta() const { return value; } inline void GameServer::clear_object_meta() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.object_meta_ != nullptr) _impl_.object_meta_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::_internal_object_meta() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::agones::dev::sdk::GameServer_ObjectMeta* p = _impl_.object_meta_; - return p != nullptr ? *p : reinterpret_cast( - ::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_); } -inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::object_meta() const { +inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::object_meta() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.object_meta) return _internal_object_meta(); } -inline void GameServer::unsafe_arena_set_allocated_object_meta( - ::agones::dev::sdk::GameServer_ObjectMeta* object_meta) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.object_meta_); +inline void GameServer::unsafe_arena_set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.object_meta_); } - _impl_.object_meta_ = object_meta; - if (object_meta) { + _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -4302,57 +4455,65 @@ inline void GameServer::unsafe_arena_set_allocated_object_meta( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.object_meta) } inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::release_object_meta() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::agones::dev::sdk::GameServer_ObjectMeta* temp = _impl_.object_meta_; + ::agones::dev::sdk::GameServer_ObjectMeta* released = _impl_.object_meta_; _impl_.object_meta_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::unsafe_arena_release_object_meta() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.object_meta) + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_ObjectMeta* temp = _impl_.object_meta_; _impl_.object_meta_ = nullptr; return temp; } inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::_internal_mutable_object_meta() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.object_meta_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_ObjectMeta>(GetArenaForAllocation()); - _impl_.object_meta_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::agones::dev::sdk::GameServer_ObjectMeta>(GetArena()); + _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(p); } return _impl_.object_meta_; } -inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::mutable_object_meta() { +inline ::agones::dev::sdk::GameServer_ObjectMeta* GameServer::mutable_object_meta() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::agones::dev::sdk::GameServer_ObjectMeta* _msg = _internal_mutable_object_meta(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.object_meta) return _msg; } -inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* object_meta) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.object_meta_; + delete (_impl_.object_meta_); } - if (object_meta) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(object_meta); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - object_meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, object_meta, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.object_meta_ = object_meta; + + _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.object_meta) } @@ -4363,25 +4524,26 @@ inline bool GameServer::has_spec() const { return value; } inline void GameServer::clear_spec() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.spec_ != nullptr) _impl_.spec_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::_internal_spec() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::agones::dev::sdk::GameServer_Spec* p = _impl_.spec_; - return p != nullptr ? *p : reinterpret_cast( - ::agones::dev::sdk::_GameServer_Spec_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Spec_default_instance_); } -inline const ::agones::dev::sdk::GameServer_Spec& GameServer::spec() const { +inline const ::agones::dev::sdk::GameServer_Spec& GameServer::spec() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.spec) return _internal_spec(); } -inline void GameServer::unsafe_arena_set_allocated_spec( - ::agones::dev::sdk::GameServer_Spec* spec) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.spec_); +inline void GameServer::unsafe_arena_set_allocated_spec(::agones::dev::sdk::GameServer_Spec* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.spec_); } - _impl_.spec_ = spec; - if (spec) { + _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -4389,57 +4551,65 @@ inline void GameServer::unsafe_arena_set_allocated_spec( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.spec) } inline ::agones::dev::sdk::GameServer_Spec* GameServer::release_spec() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000002u; - ::agones::dev::sdk::GameServer_Spec* temp = _impl_.spec_; + ::agones::dev::sdk::GameServer_Spec* released = _impl_.spec_; _impl_.spec_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::agones::dev::sdk::GameServer_Spec* GameServer::unsafe_arena_release_spec() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.spec) + _impl_._has_bits_[0] &= ~0x00000002u; ::agones::dev::sdk::GameServer_Spec* temp = _impl_.spec_; _impl_.spec_ = nullptr; return temp; } inline ::agones::dev::sdk::GameServer_Spec* GameServer::_internal_mutable_spec() { - _impl_._has_bits_[0] |= 0x00000002u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.spec_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Spec>(GetArenaForAllocation()); - _impl_.spec_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::agones::dev::sdk::GameServer_Spec>(GetArena()); + _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(p); } return _impl_.spec_; } -inline ::agones::dev::sdk::GameServer_Spec* GameServer::mutable_spec() { +inline ::agones::dev::sdk::GameServer_Spec* GameServer::mutable_spec() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::agones::dev::sdk::GameServer_Spec* _msg = _internal_mutable_spec(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.spec) return _msg; } -inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.spec_; + delete (_impl_.spec_); } - if (spec) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(spec); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.spec_ = spec; + + _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.spec) } @@ -4450,25 +4620,26 @@ inline bool GameServer::has_status() const { return value; } inline void GameServer::clear_status() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.status_ != nullptr) _impl_.status_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::agones::dev::sdk::GameServer_Status& GameServer::_internal_status() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::agones::dev::sdk::GameServer_Status* p = _impl_.status_; - return p != nullptr ? *p : reinterpret_cast( - ::agones::dev::sdk::_GameServer_Status_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Status_default_instance_); } -inline const ::agones::dev::sdk::GameServer_Status& GameServer::status() const { +inline const ::agones::dev::sdk::GameServer_Status& GameServer::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.status) return _internal_status(); } -inline void GameServer::unsafe_arena_set_allocated_status( - ::agones::dev::sdk::GameServer_Status* status) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.status_); +inline void GameServer::unsafe_arena_set_allocated_status(::agones::dev::sdk::GameServer_Status* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.status_); } - _impl_.status_ = status; - if (status) { + _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -4476,57 +4647,65 @@ inline void GameServer::unsafe_arena_set_allocated_status( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.status) } inline ::agones::dev::sdk::GameServer_Status* GameServer::release_status() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000004u; - ::agones::dev::sdk::GameServer_Status* temp = _impl_.status_; + ::agones::dev::sdk::GameServer_Status* released = _impl_.status_; _impl_.status_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::agones::dev::sdk::GameServer_Status* GameServer::unsafe_arena_release_status() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.status) + _impl_._has_bits_[0] &= ~0x00000004u; ::agones::dev::sdk::GameServer_Status* temp = _impl_.status_; _impl_.status_ = nullptr; return temp; } inline ::agones::dev::sdk::GameServer_Status* GameServer::_internal_mutable_status() { - _impl_._has_bits_[0] |= 0x00000004u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.status_ == nullptr) { - auto* p = CreateMaybeMessage<::agones::dev::sdk::GameServer_Status>(GetArenaForAllocation()); - _impl_.status_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::agones::dev::sdk::GameServer_Status>(GetArena()); + _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(p); } return _impl_.status_; } -inline ::agones::dev::sdk::GameServer_Status* GameServer::mutable_status() { +inline ::agones::dev::sdk::GameServer_Status* GameServer::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::agones::dev::sdk::GameServer_Status* _msg = _internal_mutable_status(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.status) return _msg; } -inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Status* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.status_; + delete (_impl_.status_); } - if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(status); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.status_ = status; + + _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); // @@protoc_insertion_point(field_set_allocated:agones.dev.sdk.GameServer.status) } diff --git a/sdks/cpp/include/google/api/annotations.pb.h b/sdks/cpp/include/google/api/annotations.pb.h index 177ac5e1be..a46c75b71d 100644 --- a/sdks/cpp/include/google/api/annotations.pb.h +++ b/sdks/cpp/include/google/api/annotations.pb.h @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/annotations.proto +// Protobuf C++ Version: 5.26.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fannotations_2eproto_2epb_2eh @@ -22,23 +23,19 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 -#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 // PROTOBUF_VERSION - -#if 4023004 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -53,20 +50,24 @@ #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fannotations_2eproto AGONES_EXPORT -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct AGONES_EXPORT TableStruct_google_2fapi_2fannotations_2eproto { static const ::uint32_t offsets[]; }; -AGONES_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eproto; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace google { namespace api { @@ -80,9 +81,10 @@ namespace api { static const int kHttpFieldNumber = 72295728; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false > - http; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, + false> + http; // =================================================================== diff --git a/sdks/cpp/include/google/api/http.pb.h b/sdks/cpp/include/google/api/http.pb.h index bb963f8a22..5b213b124f 100644 --- a/sdks/cpp/include/google/api/http.pb.h +++ b/sdks/cpp/include/google/api/http.pb.h @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf C++ Version: 5.26.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh @@ -22,23 +23,19 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 -#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 // PROTOBUF_VERSION - -#if 4023004 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -53,17 +50,19 @@ #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto AGONES_EXPORT -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct AGONES_EXPORT TableStruct_google_2fapi_2fhttp_2eproto { static const ::uint32_t offsets[]; }; -AGONES_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto; namespace google { namespace api { @@ -77,15 +76,9 @@ class HttpRule; struct HttpRuleDefaultTypeInternal; AGONES_EXPORT extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; } // namespace api +namespace protobuf { +} // namespace protobuf } // namespace google -PROTOBUF_NAMESPACE_OPEN -template <> -AGONES_EXPORT ::google::api::CustomHttpPattern* Arena::CreateMaybeMessage<::google::api::CustomHttpPattern>(Arena*); -template <> -AGONES_EXPORT ::google::api::Http* Arena::CreateMaybeMessage<::google::api::Http>(Arena*); -template <> -AGONES_EXPORT ::google::api::HttpRule* Arena::CreateMaybeMessage<::google::api::HttpRule>(Arena*); -PROTOBUF_NAMESPACE_CLOSE namespace google { namespace api { @@ -95,30 +88,28 @@ namespace api { // ------------------------------------------------------------------- -class AGONES_EXPORT Http final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { +class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: - inline Http() : Http(nullptr) {} - ~Http() override; - template - explicit PROTOBUF_CONSTEXPR Http(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Http(const Http& from); - Http(Http&& from) noexcept - : Http() { - *this = ::std::move(from); - } + inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} + ~CustomHttpPattern() override; + template + explicit PROTOBUF_CONSTEXPR CustomHttpPattern( + ::google::protobuf::internal::ConstantInitialized); - inline Http& operator=(const Http& from) { + inline CustomHttpPattern(const CustomHttpPattern& from) : CustomHttpPattern(nullptr, from) {} + inline CustomHttpPattern(CustomHttpPattern&& from) noexcept + : CustomHttpPattern(nullptr, std::move(from)) {} + inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { CopyFrom(from); return *this; } - inline Http& operator=(Http&& from) noexcept { + inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -127,175 +118,189 @@ class AGONES_EXPORT Http final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Http& default_instance() { + static const CustomHttpPattern& default_instance() { return *internal_default_instance(); } - static inline const Http* internal_default_instance() { - return reinterpret_cast( - &_Http_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Http& a, Http& b) { - a.Swap(&b); + static inline const CustomHttpPattern* internal_default_instance() { + return reinterpret_cast( + &_CustomHttpPattern_default_instance_); } - inline void Swap(Http* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { a.Swap(&b); } + inline void Swap(CustomHttpPattern* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Http* other) { + void UnsafeArenaSwap(CustomHttpPattern* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Http& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Http& from) { - Http::MergeImpl(*this, from); + CustomHttpPattern* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const CustomHttpPattern& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const CustomHttpPattern& from) { CustomHttpPattern::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Http* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.Http"; + void InternalSwap(CustomHttpPattern* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.api.CustomHttpPattern"; } + + protected: + explicit CustomHttpPattern(::google::protobuf::Arena* arena); + CustomHttpPattern(::google::protobuf::Arena* arena, const CustomHttpPattern& from); + CustomHttpPattern(::google::protobuf::Arena* arena, CustomHttpPattern&& from) noexcept + : CustomHttpPattern(arena) { + *this = ::std::move(from); } - protected: - explicit Http(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRulesFieldNumber = 1, - kFullyDecodeReservedExpansionFieldNumber = 2, + kKindFieldNumber = 1, + kPathFieldNumber = 2, }; - // repeated .google.api.HttpRule rules = 1; - int rules_size() const; - private: - int _internal_rules_size() const; + // string kind = 1; + void clear_kind() ; + const std::string& kind() const; + template + void set_kind(Arg_&& arg, Args_... args); + std::string* mutable_kind(); + PROTOBUF_NODISCARD std::string* release_kind(); + void set_allocated_kind(std::string* value); - public: - void clear_rules() ; - ::google::api::HttpRule* mutable_rules(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* - mutable_rules(); private: - const ::google::api::HttpRule& _internal_rules(int index) const; - ::google::api::HttpRule* _internal_add_rules(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_rules(); + const std::string& _internal_kind() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind( + const std::string& value); + std::string* _internal_mutable_kind(); + public: - const ::google::api::HttpRule& rules(int index) const; - ::google::api::HttpRule* add_rules(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& - rules() const; - // bool fully_decode_reserved_expansion = 2; - void clear_fully_decode_reserved_expansion() ; - bool fully_decode_reserved_expansion() const; - void set_fully_decode_reserved_expansion(bool value); + // string path = 2; + void clear_path() ; + const std::string& path() const; + template + void set_path(Arg_&& arg, Args_... args); + std::string* mutable_path(); + PROTOBUF_NODISCARD std::string* release_path(); + void set_allocated_path(std::string* value); private: - bool _internal_fully_decode_reserved_expansion() const; - void _internal_set_fully_decode_reserved_expansion(bool value); + const std::string& _internal_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); + std::string* _internal_mutable_path(); public: - // @@protoc_insertion_point(class_scope:google.api.Http) + // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 45, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_; - bool fully_decode_reserved_expansion_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr kind_; + ::google::protobuf::internal::ArenaStringPtr path_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT HttpRule final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { +class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: inline HttpRule() : HttpRule(nullptr) {} ~HttpRule() override; - template - explicit PROTOBUF_CONSTEXPR HttpRule(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - HttpRule(const HttpRule& from); - HttpRule(HttpRule&& from) noexcept - : HttpRule() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR HttpRule( + ::google::protobuf::internal::ConstantInitialized); + inline HttpRule(const HttpRule& from) : HttpRule(nullptr, from) {} + inline HttpRule(HttpRule&& from) noexcept + : HttpRule(nullptr, std::move(from)) {} inline HttpRule& operator=(const HttpRule& from) { CopyFrom(from); return *this; } inline HttpRule& operator=(HttpRule&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -304,20 +309,22 @@ class AGONES_EXPORT HttpRule final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const HttpRule& default_instance() { @@ -332,83 +339,79 @@ class AGONES_EXPORT HttpRule final : kCustom = 8, PATTERN_NOT_SET = 0, }; - static inline const HttpRule* internal_default_instance() { return reinterpret_cast( - &_HttpRule_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(HttpRule& a, HttpRule& b) { - a.Swap(&b); + &_HttpRule_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(HttpRule& a, HttpRule& b) { a.Swap(&b); } inline void Swap(HttpRule* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(HttpRule* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + HttpRule* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const HttpRule& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const HttpRule& from) { - HttpRule::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const HttpRule& from) { HttpRule::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(HttpRule* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.HttpRule"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.api.HttpRule"; } + + protected: + explicit HttpRule(::google::protobuf::Arena* arena); + HttpRule(::google::protobuf::Arena* arena, const HttpRule& from); + HttpRule(::google::protobuf::Arena* arena, HttpRule&& from) noexcept + : HttpRule(arena) { + *this = ::std::move(from); } - protected: - explicit HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kAdditionalBindingsFieldNumber = 11, kSelectorFieldNumber = 1, @@ -429,30 +432,23 @@ class AGONES_EXPORT HttpRule final : public: void clear_additional_bindings() ; ::google::api::HttpRule* mutable_additional_bindings(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* - mutable_additional_bindings(); + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* mutable_additional_bindings(); + private: - const ::google::api::HttpRule& _internal_additional_bindings(int index) const; - ::google::api::HttpRule* _internal_add_additional_bindings(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_additional_bindings(); + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const; + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_additional_bindings(); public: const ::google::api::HttpRule& additional_bindings(int index) const; ::google::api::HttpRule* add_additional_bindings(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& - additional_bindings() const; + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& additional_bindings() const; // string selector = 1; void clear_selector() ; const std::string& selector() const; - - - - template void set_selector(Arg_&& arg, Args_... args); std::string* mutable_selector(); PROTOBUF_NODISCARD std::string* release_selector(); - void set_allocated_selector(std::string* ptr); + void set_allocated_selector(std::string* value); private: const std::string& _internal_selector() const; @@ -464,15 +460,11 @@ class AGONES_EXPORT HttpRule final : // string body = 7; void clear_body() ; const std::string& body() const; - - - - template void set_body(Arg_&& arg, Args_... args); std::string* mutable_body(); PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* ptr); + void set_allocated_body(std::string* value); private: const std::string& _internal_body() const; @@ -484,15 +476,11 @@ class AGONES_EXPORT HttpRule final : // string response_body = 12; void clear_response_body() ; const std::string& response_body() const; - - - - template void set_response_body(Arg_&& arg, Args_... args); std::string* mutable_response_body(); PROTOBUF_NODISCARD std::string* release_response_body(); - void set_allocated_response_body(std::string* ptr); + void set_allocated_response_body(std::string* value); private: const std::string& _internal_response_body() const; @@ -505,15 +493,11 @@ class AGONES_EXPORT HttpRule final : bool has_get() const; void clear_get() ; const std::string& get() const; - - - - template void set_get(Arg_&& arg, Args_... args); std::string* mutable_get(); PROTOBUF_NODISCARD std::string* release_get(); - void set_allocated_get(std::string* ptr); + void set_allocated_get(std::string* value); private: const std::string& _internal_get() const; @@ -526,15 +510,11 @@ class AGONES_EXPORT HttpRule final : bool has_put() const; void clear_put() ; const std::string& put() const; - - - - template void set_put(Arg_&& arg, Args_... args); std::string* mutable_put(); PROTOBUF_NODISCARD std::string* release_put(); - void set_allocated_put(std::string* ptr); + void set_allocated_put(std::string* value); private: const std::string& _internal_put() const; @@ -547,15 +527,11 @@ class AGONES_EXPORT HttpRule final : bool has_post() const; void clear_post() ; const std::string& post() const; - - - - template void set_post(Arg_&& arg, Args_... args); std::string* mutable_post(); PROTOBUF_NODISCARD std::string* release_post(); - void set_allocated_post(std::string* ptr); + void set_allocated_post(std::string* value); private: const std::string& _internal_post() const; @@ -568,15 +544,11 @@ class AGONES_EXPORT HttpRule final : bool has_delete_() const; void clear_delete_() ; const std::string& delete_() const; - - - - template void set_delete_(Arg_&& arg, Args_... args); std::string* mutable_delete_(); PROTOBUF_NODISCARD std::string* release_delete_(); - void set_allocated_delete_(std::string* ptr); + void set_allocated_delete_(std::string* value); private: const std::string& _internal_delete_() const; @@ -589,15 +561,11 @@ class AGONES_EXPORT HttpRule final : bool has_patch() const; void clear_patch() ; const std::string& patch() const; - - - - template void set_patch(Arg_&& arg, Args_... args); std::string* mutable_patch(); PROTOBUF_NODISCARD std::string* release_patch(); - void set_allocated_patch(std::string* ptr); + void set_allocated_patch(std::string* value); private: const std::string& _internal_patch() const; @@ -616,14 +584,15 @@ class AGONES_EXPORT HttpRule final : const ::google::api::CustomHttpPattern& custom() const; PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom(); ::google::api::CustomHttpPattern* mutable_custom(); - void set_allocated_custom(::google::api::CustomHttpPattern* custom); + void set_allocated_custom(::google::api::CustomHttpPattern* value); + void unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value); + ::google::api::CustomHttpPattern* unsafe_arena_release_custom(); + private: const ::google::api::CustomHttpPattern& _internal_custom() const; ::google::api::CustomHttpPattern* _internal_mutable_custom(); + public: - void unsafe_arena_set_allocated_custom( - ::google::api::CustomHttpPattern* custom); - ::google::api::CustomHttpPattern* unsafe_arena_release_custom(); void clear_pattern(); PatternCase pattern_case() const; // @@protoc_insertion_point(class_scope:google.api.HttpRule) @@ -635,60 +604,71 @@ class AGONES_EXPORT HttpRule final : void set_has_delete_(); void set_has_patch(); void set_has_custom(); - inline bool has_pattern() const; inline void clear_has_pattern(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 10, 2, + 82, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_body_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_; + ::google::protobuf::internal::ArenaStringPtr selector_; + ::google::protobuf::internal::ArenaStringPtr body_; + ::google::protobuf::internal::ArenaStringPtr response_body_; union PatternUnion { constexpr PatternUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_; + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::internal::ArenaStringPtr get_; + ::google::protobuf::internal::ArenaStringPtr put_; + ::google::protobuf::internal::ArenaStringPtr post_; + ::google::protobuf::internal::ArenaStringPtr delete__; + ::google::protobuf::internal::ArenaStringPtr patch_; ::google::api::CustomHttpPattern* custom_; } pattern_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; - + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT CustomHttpPattern final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { +class AGONES_EXPORT Http final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: - inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} - ~CustomHttpPattern() override; - template - explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CustomHttpPattern(const CustomHttpPattern& from); - CustomHttpPattern(CustomHttpPattern&& from) noexcept - : CustomHttpPattern() { - *this = ::std::move(from); - } + inline Http() : Http(nullptr) {} + ~Http() override; + template + explicit PROTOBUF_CONSTEXPR Http( + ::google::protobuf::internal::ConstantInitialized); - inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { + inline Http(const Http& from) : Http(nullptr, from) {} + inline Http(Http&& from) noexcept + : Http(nullptr, std::move(from)) {} + inline Http& operator=(const Http& from) { CopyFrom(from); return *this; } - inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept { + inline Http& operator=(Http&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -697,156 +677,156 @@ class AGONES_EXPORT CustomHttpPattern final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CustomHttpPattern& default_instance() { + static const Http& default_instance() { return *internal_default_instance(); } - static inline const CustomHttpPattern* internal_default_instance() { - return reinterpret_cast( - &_CustomHttpPattern_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { - a.Swap(&b); + static inline const Http* internal_default_instance() { + return reinterpret_cast( + &_Http_default_instance_); } - inline void Swap(CustomHttpPattern* other) { + static constexpr int kIndexInFileMessages = 0; + friend void swap(Http& a, Http& b) { a.Swap(&b); } + inline void Swap(Http* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CustomHttpPattern* other) { + void UnsafeArenaSwap(Http* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CustomHttpPattern& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CustomHttpPattern& from) { - CustomHttpPattern::MergeImpl(*this, from); + Http* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Http& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Http& from) { Http::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CustomHttpPattern* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "google.api.CustomHttpPattern"; + void InternalSwap(Http* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "google.api.Http"; } + + protected: + explicit Http(::google::protobuf::Arena* arena); + Http(::google::protobuf::Arena* arena, const Http& from); + Http(::google::protobuf::Arena* arena, Http&& from) noexcept + : Http(arena) { + *this = ::std::move(from); } - protected: - explicit CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kKindFieldNumber = 1, - kPathFieldNumber = 2, + kRulesFieldNumber = 1, + kFullyDecodeReservedExpansionFieldNumber = 2, }; - // string kind = 1; - void clear_kind() ; - const std::string& kind() const; - - - - - template - void set_kind(Arg_&& arg, Args_... args); - std::string* mutable_kind(); - PROTOBUF_NODISCARD std::string* release_kind(); - void set_allocated_kind(std::string* ptr); - + // repeated .google.api.HttpRule rules = 1; + int rules_size() const; private: - const std::string& _internal_kind() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind( - const std::string& value); - std::string* _internal_mutable_kind(); + int _internal_rules_size() const; public: - // string path = 2; - void clear_path() ; - const std::string& path() const; - - - + void clear_rules() ; + ::google::api::HttpRule* mutable_rules(int index); + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* mutable_rules(); - template - void set_path(Arg_&& arg, Args_... args); - std::string* mutable_path(); - PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* ptr); + private: + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const; + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_rules(); + public: + const ::google::api::HttpRule& rules(int index) const; + ::google::api::HttpRule* add_rules(); + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& rules() const; + // bool fully_decode_reserved_expansion = 2; + void clear_fully_decode_reserved_expansion() ; + bool fully_decode_reserved_expansion() const; + void set_fully_decode_reserved_expansion(bool value); private: - const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( - const std::string& value); - std::string* _internal_mutable_path(); + bool _internal_fully_decode_reserved_expansion() const; + void _internal_set_fully_decode_reserved_expansion(bool value); public: - // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) + // @@protoc_insertion_point(class_scope:google.api.Http) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 0, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_; + bool fully_decode_reserved_expansion_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; @@ -870,54 +850,56 @@ class AGONES_EXPORT CustomHttpPattern final : // repeated .google.api.HttpRule rules = 1; inline int Http::_internal_rules_size() const { - return _impl_.rules_.size(); + return _internal_rules().size(); } inline int Http::rules_size() const { return _internal_rules_size(); } inline void Http::clear_rules() { - _internal_mutable_rules()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.rules_.Clear(); } -inline ::google::api::HttpRule* Http::mutable_rules(int index) { +inline ::google::api::HttpRule* Http::mutable_rules(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.api.Http.rules) return _internal_mutable_rules()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* -Http::mutable_rules() { +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* Http::mutable_rules() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_rules(); } -inline const ::google::api::HttpRule& Http::_internal_rules(int index) const { - return _internal_rules().Get(index); -} -inline const ::google::api::HttpRule& Http::rules(int index) const { +inline const ::google::api::HttpRule& Http::rules(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.Http.rules) - return _internal_rules(index); -} -inline ::google::api::HttpRule* Http::_internal_add_rules() { - return _internal_mutable_rules()->Add(); + return _internal_rules().Get(index); } -inline ::google::api::HttpRule* Http::add_rules() { - ::google::api::HttpRule* _add = _internal_add_rules(); +inline ::google::api::HttpRule* Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::api::HttpRule* _add = _internal_mutable_rules()->Add(); // @@protoc_insertion_point(field_add:google.api.Http.rules) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& -Http::rules() const { +inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::rules() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:google.api.Http.rules) return _internal_rules(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>& +inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::_internal_rules() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.rules_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>* +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* Http::_internal_mutable_rules() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.rules_; } // bool fully_decode_reserved_expansion = 2; inline void Http::clear_fully_decode_reserved_expansion() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.fully_decode_reserved_expansion_ = false; } inline bool Http::fully_decode_reserved_expansion() const { @@ -929,10 +911,11 @@ inline void Http::set_fully_decode_reserved_expansion(bool value) { // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion) } inline bool Http::_internal_fully_decode_reserved_expansion() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.fully_decode_reserved_expansion_; } inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.fully_decode_reserved_expansion_ = value; } @@ -942,46 +925,49 @@ inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { // string selector = 1; inline void HttpRule::clear_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.selector_.ClearToEmpty(); } -inline const std::string& HttpRule::selector() const { +inline const std::string& HttpRule::selector() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.selector) return _internal_selector(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg, Args_... args) { - ; - _impl_.selector_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.selector_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) } -inline std::string* HttpRule::mutable_selector() { +inline std::string* HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) return _s; } inline const std::string& HttpRule::_internal_selector() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.selector_.Get(); } inline void HttpRule::_internal_set_selector(const std::string& value) { - ; - - - _impl_.selector_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.selector_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_selector() { - ; - return _impl_.selector_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.selector_.Mutable( GetArena()); } inline std::string* HttpRule::release_selector() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) return _impl_.selector_.Release(); } inline void HttpRule::set_allocated_selector(std::string* value) { - _impl_.selector_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.selector_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.selector_.IsDefault()) { - _impl_.selector_.Set("", GetArenaForAllocation()); + _impl_.selector_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector) @@ -995,59 +981,64 @@ inline void HttpRule::set_has_get() { _impl_._oneof_case_[0] = kGet; } inline void HttpRule::clear_get() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kGet) { _impl_.pattern_.get_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::get() const { +inline const std::string& HttpRule::get() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.get) return _internal_get(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg, Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kGet) { clear_pattern(); set_has_get(); _impl_.pattern_.get_.InitDefault(); } - _impl_.pattern_.get_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.pattern_.get_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.get) } -inline std::string* HttpRule::mutable_get() { +inline std::string* HttpRule::mutable_get() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_get(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) return _s; } inline const std::string& HttpRule::_internal_get() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (pattern_case() != kGet) { - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } return _impl_.pattern_.get_.Get(); } inline void HttpRule::_internal_set_get(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kGet) { clear_pattern(); set_has_get(); _impl_.pattern_.get_.InitDefault(); } - - - _impl_.pattern_.get_.Set(value, GetArenaForAllocation()); + _impl_.pattern_.get_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_get() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kGet) { clear_pattern(); set_has_get(); _impl_.pattern_.get_.InitDefault(); } - return _impl_.pattern_.get_.Mutable( GetArenaForAllocation()); + return _impl_.pattern_.get_.Mutable( GetArena()); } inline std::string* HttpRule::release_get() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.get) if (pattern_case() != kGet) { return nullptr; @@ -1056,12 +1047,13 @@ inline std::string* HttpRule::release_get() { return _impl_.pattern_.get_.Release(); } inline void HttpRule::set_allocated_get(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_pattern()) { clear_pattern(); } if (value != nullptr) { set_has_get(); - _impl_.pattern_.get_.InitAllocated(value, GetArenaForAllocation()); + _impl_.pattern_.get_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get) } @@ -1074,59 +1066,64 @@ inline void HttpRule::set_has_put() { _impl_._oneof_case_[0] = kPut; } inline void HttpRule::clear_put() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kPut) { _impl_.pattern_.put_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::put() const { +inline const std::string& HttpRule::put() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.put) return _internal_put(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_put(Arg_&& arg, Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPut) { clear_pattern(); set_has_put(); _impl_.pattern_.put_.InitDefault(); } - _impl_.pattern_.put_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.pattern_.put_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.put) } -inline std::string* HttpRule::mutable_put() { +inline std::string* HttpRule::mutable_put() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_put(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) return _s; } inline const std::string& HttpRule::_internal_put() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (pattern_case() != kPut) { - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } return _impl_.pattern_.put_.Get(); } inline void HttpRule::_internal_set_put(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPut) { clear_pattern(); set_has_put(); _impl_.pattern_.put_.InitDefault(); } - - - _impl_.pattern_.put_.Set(value, GetArenaForAllocation()); + _impl_.pattern_.put_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_put() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPut) { clear_pattern(); set_has_put(); _impl_.pattern_.put_.InitDefault(); } - return _impl_.pattern_.put_.Mutable( GetArenaForAllocation()); + return _impl_.pattern_.put_.Mutable( GetArena()); } inline std::string* HttpRule::release_put() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.put) if (pattern_case() != kPut) { return nullptr; @@ -1135,12 +1132,13 @@ inline std::string* HttpRule::release_put() { return _impl_.pattern_.put_.Release(); } inline void HttpRule::set_allocated_put(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_pattern()) { clear_pattern(); } if (value != nullptr) { set_has_put(); - _impl_.pattern_.put_.InitAllocated(value, GetArenaForAllocation()); + _impl_.pattern_.put_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put) } @@ -1153,59 +1151,64 @@ inline void HttpRule::set_has_post() { _impl_._oneof_case_[0] = kPost; } inline void HttpRule::clear_post() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kPost) { _impl_.pattern_.post_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::post() const { +inline const std::string& HttpRule::post() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.post) return _internal_post(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_post(Arg_&& arg, Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPost) { clear_pattern(); set_has_post(); _impl_.pattern_.post_.InitDefault(); } - _impl_.pattern_.post_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.pattern_.post_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.post) } -inline std::string* HttpRule::mutable_post() { +inline std::string* HttpRule::mutable_post() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_post(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) return _s; } inline const std::string& HttpRule::_internal_post() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (pattern_case() != kPost) { - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } return _impl_.pattern_.post_.Get(); } inline void HttpRule::_internal_set_post(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPost) { clear_pattern(); set_has_post(); _impl_.pattern_.post_.InitDefault(); } - - - _impl_.pattern_.post_.Set(value, GetArenaForAllocation()); + _impl_.pattern_.post_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_post() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPost) { clear_pattern(); set_has_post(); _impl_.pattern_.post_.InitDefault(); } - return _impl_.pattern_.post_.Mutable( GetArenaForAllocation()); + return _impl_.pattern_.post_.Mutable( GetArena()); } inline std::string* HttpRule::release_post() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.post) if (pattern_case() != kPost) { return nullptr; @@ -1214,12 +1217,13 @@ inline std::string* HttpRule::release_post() { return _impl_.pattern_.post_.Release(); } inline void HttpRule::set_allocated_post(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_pattern()) { clear_pattern(); } if (value != nullptr) { set_has_post(); - _impl_.pattern_.post_.InitAllocated(value, GetArenaForAllocation()); + _impl_.pattern_.post_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post) } @@ -1232,59 +1236,64 @@ inline void HttpRule::set_has_delete_() { _impl_._oneof_case_[0] = kDelete; } inline void HttpRule::clear_delete_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kDelete) { _impl_.pattern_.delete__.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::delete_() const { +inline const std::string& HttpRule::delete_() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.delete) return _internal_delete_(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_delete_(Arg_&& arg, Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kDelete) { clear_pattern(); set_has_delete_(); _impl_.pattern_.delete__.InitDefault(); } - _impl_.pattern_.delete__.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.pattern_.delete__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.delete) } -inline std::string* HttpRule::mutable_delete_() { +inline std::string* HttpRule::mutable_delete_() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_delete_(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) return _s; } inline const std::string& HttpRule::_internal_delete_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (pattern_case() != kDelete) { - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } return _impl_.pattern_.delete__.Get(); } inline void HttpRule::_internal_set_delete_(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kDelete) { clear_pattern(); set_has_delete_(); _impl_.pattern_.delete__.InitDefault(); } - - - _impl_.pattern_.delete__.Set(value, GetArenaForAllocation()); + _impl_.pattern_.delete__.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_delete_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kDelete) { clear_pattern(); set_has_delete_(); _impl_.pattern_.delete__.InitDefault(); } - return _impl_.pattern_.delete__.Mutable( GetArenaForAllocation()); + return _impl_.pattern_.delete__.Mutable( GetArena()); } inline std::string* HttpRule::release_delete_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.delete) if (pattern_case() != kDelete) { return nullptr; @@ -1293,12 +1302,13 @@ inline std::string* HttpRule::release_delete_() { return _impl_.pattern_.delete__.Release(); } inline void HttpRule::set_allocated_delete_(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_pattern()) { clear_pattern(); } if (value != nullptr) { set_has_delete_(); - _impl_.pattern_.delete__.InitAllocated(value, GetArenaForAllocation()); + _impl_.pattern_.delete__.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete) } @@ -1311,59 +1321,64 @@ inline void HttpRule::set_has_patch() { _impl_._oneof_case_[0] = kPatch; } inline void HttpRule::clear_patch() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kPatch) { _impl_.pattern_.patch_.Destroy(); clear_has_pattern(); } } -inline const std::string& HttpRule::patch() const { +inline const std::string& HttpRule::patch() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.patch) return _internal_patch(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_patch(Arg_&& arg, Args_... args) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPatch) { clear_pattern(); set_has_patch(); _impl_.pattern_.patch_.InitDefault(); } - _impl_.pattern_.patch_.Set(static_cast(arg), args..., GetArenaForAllocation()); + _impl_.pattern_.patch_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.patch) } -inline std::string* HttpRule::mutable_patch() { +inline std::string* HttpRule::mutable_patch() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_patch(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) return _s; } inline const std::string& HttpRule::_internal_patch() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); if (pattern_case() != kPatch) { - return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); + return ::google::protobuf::internal::GetEmptyStringAlreadyInited(); } return _impl_.pattern_.patch_.Get(); } inline void HttpRule::_internal_set_patch(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPatch) { clear_pattern(); set_has_patch(); _impl_.pattern_.patch_.InitDefault(); } - - - _impl_.pattern_.patch_.Set(value, GetArenaForAllocation()); + _impl_.pattern_.patch_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_patch() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() != kPatch) { clear_pattern(); set_has_patch(); _impl_.pattern_.patch_.InitDefault(); } - return _impl_.pattern_.patch_.Mutable( GetArenaForAllocation()); + return _impl_.pattern_.patch_.Mutable( GetArena()); } inline std::string* HttpRule::release_patch() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.patch) if (pattern_case() != kPatch) { return nullptr; @@ -1372,12 +1387,13 @@ inline std::string* HttpRule::release_patch() { return _impl_.pattern_.patch_.Release(); } inline void HttpRule::set_allocated_patch(std::string* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (has_pattern()) { clear_pattern(); } if (value != nullptr) { set_has_patch(); - _impl_.pattern_.patch_.InitAllocated(value, GetArenaForAllocation()); + _impl_.pattern_.patch_.InitAllocated(value, GetArena()); } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch) } @@ -1393,8 +1409,9 @@ inline void HttpRule::set_has_custom() { _impl_._oneof_case_[0] = kCustom; } inline void HttpRule::clear_custom() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (pattern_case() == kCustom) { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.pattern_.custom_; } clear_has_pattern(); @@ -1404,9 +1421,9 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { // @@protoc_insertion_point(field_release:google.api.HttpRule.custom) if (pattern_case() == kCustom) { clear_has_pattern(); - ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* temp = _impl_.pattern_.custom_; + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } _impl_.pattern_.custom_ = nullptr; return temp; @@ -1415,11 +1432,9 @@ inline ::google::api::CustomHttpPattern* HttpRule::release_custom() { } } inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { - return pattern_case() == kCustom - ? *_impl_.pattern_.custom_ - : reinterpret_cast<::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); + return pattern_case() == kCustom ? *_impl_.pattern_.custom_ : reinterpret_cast<::google::api::CustomHttpPattern&>(::google::api::_CustomHttpPattern_default_instance_); } -inline const ::google::api::CustomHttpPattern& HttpRule::custom() const { +inline const ::google::api::CustomHttpPattern& HttpRule::custom() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) return _internal_custom(); } @@ -1427,18 +1442,21 @@ inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom) if (pattern_case() == kCustom) { clear_has_pattern(); - ::google::api::CustomHttpPattern* temp = _impl_.pattern_.custom_; + auto* temp = _impl_.pattern_.custom_; _impl_.pattern_.custom_ = nullptr; return temp; } else { return nullptr; } } -inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) { +inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. clear_pattern(); - if (custom) { + if (value) { set_has_custom(); - _impl_.pattern_.custom_ = custom; + _impl_.pattern_.custom_ = value; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom) } @@ -1446,11 +1464,12 @@ inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() { if (pattern_case() != kCustom) { clear_pattern(); set_has_custom(); - _impl_.pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(GetArenaForAllocation()); + _impl_.pattern_.custom_ = + ::google::protobuf::Message::DefaultConstruct<::google::api::CustomHttpPattern>(GetArena()); } return _impl_.pattern_.custom_; } -inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { +inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::api::CustomHttpPattern* _msg = _internal_mutable_custom(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom) return _msg; @@ -1458,46 +1477,49 @@ inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() { // string body = 7; inline void HttpRule::clear_body() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.body_.ClearToEmpty(); } -inline const std::string& HttpRule::body() const { +inline const std::string& HttpRule::body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.body) return _internal_body(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_body(Arg_&& arg, Args_... args) { - ; - _impl_.body_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.body) } -inline std::string* HttpRule::mutable_body() { +inline std::string* HttpRule::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) return _s; } inline const std::string& HttpRule::_internal_body() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.body_.Get(); } inline void HttpRule::_internal_set_body(const std::string& value) { - ; - - - _impl_.body_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.body_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_body() { - ; - return _impl_.body_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.body_.Mutable( GetArena()); } inline std::string* HttpRule::release_body() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.body) return _impl_.body_.Release(); } inline void HttpRule::set_allocated_body(std::string* value) { - _impl_.body_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.body_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.body_.IsDefault()) { - _impl_.body_.Set("", GetArenaForAllocation()); + _impl_.body_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body) @@ -1505,46 +1527,49 @@ inline void HttpRule::set_allocated_body(std::string* value) { // string response_body = 12; inline void HttpRule::clear_response_body() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.response_body_.ClearToEmpty(); } -inline const std::string& HttpRule::response_body() const { +inline const std::string& HttpRule::response_body() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.response_body) return _internal_response_body(); } template inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_response_body(Arg_&& arg, Args_... args) { - ; - _impl_.response_body_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.response_body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) } -inline std::string* HttpRule::mutable_response_body() { +inline std::string* HttpRule::mutable_response_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_response_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) return _s; } inline const std::string& HttpRule::_internal_response_body() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.response_body_.Get(); } inline void HttpRule::_internal_set_response_body(const std::string& value) { - ; - - - _impl_.response_body_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.response_body_.Set(value, GetArena()); } inline std::string* HttpRule::_internal_mutable_response_body() { - ; - return _impl_.response_body_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.response_body_.Mutable( GetArena()); } inline std::string* HttpRule::release_response_body() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) return _impl_.response_body_.Release(); } inline void HttpRule::set_allocated_response_body(std::string* value) { - _impl_.response_body_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.response_body_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.response_body_.IsDefault()) { - _impl_.response_body_.Set("", GetArenaForAllocation()); + _impl_.response_body_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.response_body) @@ -1552,49 +1577,50 @@ inline void HttpRule::set_allocated_response_body(std::string* value) { // repeated .google.api.HttpRule additional_bindings = 11; inline int HttpRule::_internal_additional_bindings_size() const { - return _impl_.additional_bindings_.size(); + return _internal_additional_bindings().size(); } inline int HttpRule::additional_bindings_size() const { return _internal_additional_bindings_size(); } inline void HttpRule::clear_additional_bindings() { - _internal_mutable_additional_bindings()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.additional_bindings_.Clear(); } -inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) { +inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings) return _internal_mutable_additional_bindings()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >* -HttpRule::mutable_additional_bindings() { +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* HttpRule::mutable_additional_bindings() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_additional_bindings(); } -inline const ::google::api::HttpRule& HttpRule::_internal_additional_bindings(int index) const { - return _internal_additional_bindings().Get(index); -} -inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const { +inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings) - return _internal_additional_bindings(index); -} -inline ::google::api::HttpRule* HttpRule::_internal_add_additional_bindings() { - return _internal_mutable_additional_bindings()->Add(); + return _internal_additional_bindings().Get(index); } -inline ::google::api::HttpRule* HttpRule::add_additional_bindings() { - ::google::api::HttpRule* _add = _internal_add_additional_bindings(); +inline ::google::api::HttpRule* HttpRule::add_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::google::api::HttpRule* _add = _internal_mutable_additional_bindings()->Add(); // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >& -HttpRule::additional_bindings() const { +inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::additional_bindings() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) return _internal_additional_bindings(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>& +inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::_internal_additional_bindings() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.additional_bindings_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::google::api::HttpRule>* +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* HttpRule::_internal_mutable_additional_bindings() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.additional_bindings_; } @@ -1613,46 +1639,49 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { // string kind = 1; inline void CustomHttpPattern::clear_kind() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.kind_.ClearToEmpty(); } -inline const std::string& CustomHttpPattern::kind() const { +inline const std::string& CustomHttpPattern::kind() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind) return _internal_kind(); } template inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_kind(Arg_&& arg, Args_... args) { - ; - _impl_.kind_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.kind_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) } -inline std::string* CustomHttpPattern::mutable_kind() { +inline std::string* CustomHttpPattern::mutable_kind() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_kind(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) return _s; } inline const std::string& CustomHttpPattern::_internal_kind() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.kind_.Get(); } inline void CustomHttpPattern::_internal_set_kind(const std::string& value) { - ; - - - _impl_.kind_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.kind_.Set(value, GetArena()); } inline std::string* CustomHttpPattern::_internal_mutable_kind() { - ; - return _impl_.kind_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.kind_.Mutable( GetArena()); } inline std::string* CustomHttpPattern::release_kind() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) return _impl_.kind_.Release(); } inline void CustomHttpPattern::set_allocated_kind(std::string* value) { - _impl_.kind_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.kind_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.kind_.IsDefault()) { - _impl_.kind_.Set("", GetArenaForAllocation()); + _impl_.kind_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind) @@ -1660,46 +1689,49 @@ inline void CustomHttpPattern::set_allocated_kind(std::string* value) { // string path = 2; inline void CustomHttpPattern::clear_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.path_.ClearToEmpty(); } -inline const std::string& CustomHttpPattern::path() const { +inline const std::string& CustomHttpPattern::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path) return _internal_path(); } template inline PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_path(Arg_&& arg, Args_... args) { - ; - _impl_.path_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) } -inline std::string* CustomHttpPattern::mutable_path() { +inline std::string* CustomHttpPattern::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) return _s; } inline const std::string& CustomHttpPattern::_internal_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.path_.Get(); } inline void CustomHttpPattern::_internal_set_path(const std::string& value) { - ; - - - _impl_.path_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_.Set(value, GetArena()); } inline std::string* CustomHttpPattern::_internal_mutable_path() { - ; - return _impl_.path_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.path_.Mutable( GetArena()); } inline std::string* CustomHttpPattern::release_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) return _impl_.path_.Release(); } inline void CustomHttpPattern::set_allocated_path(std::string* value) { - _impl_.path_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path) diff --git a/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h b/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h index e8d1f68e93..eceaa7dc8e 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protoc-gen-openapiv2/options/annotations.proto +// Protobuf C++ Version: 5.26.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh @@ -22,23 +23,19 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 -#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 // PROTOBUF_VERSION - -#if 4023004 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -53,20 +50,24 @@ #define PROTOBUF_INTERNAL_EXPORT_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto AGONES_EXPORT -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct AGONES_EXPORT TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto { static const ::uint32_t offsets[]; }; -AGONES_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace grpc { namespace gateway { @@ -82,25 +83,30 @@ namespace options { static const int kOpenapiv2SwaggerFieldNumber = 1042; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, 11, false > - openapiv2_swagger; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::FileOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, 11, + false> + openapiv2_swagger; static const int kOpenapiv2OperationFieldNumber = 1042; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, 11, false > - openapiv2_operation; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, 11, + false> + openapiv2_operation; static const int kOpenapiv2SchemaFieldNumber = 1042; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, 11, false > - openapiv2_schema; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::MessageOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, 11, + false> + openapiv2_schema; static const int kOpenapiv2TagFieldNumber = 1042; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, 11, false > - openapiv2_tag; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::ServiceOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, 11, + false> + openapiv2_tag; static const int kOpenapiv2FieldFieldNumber = 1042; -AGONES_EXPORT extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, 11, false > - openapiv2_field; +AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< + ::google::protobuf::FieldOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, 11, + false> + openapiv2_field; // =================================================================== diff --git a/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h b/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h index 48dabd8b15..27187ec78b 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protoc-gen-openapiv2/options/openapiv2.proto +// Protobuf C++ Version: 5.26.1 #ifndef GOOGLE_PROTOBUF_INCLUDED_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh #define GOOGLE_PROTOBUF_INCLUDED_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh @@ -22,23 +23,19 @@ #include #include #include +#include #include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION < 4023000 -#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 // PROTOBUF_VERSION - -#if 4023004 < 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 // PROTOBUF_MIN_PROTOC_VERSION +#if PROTOBUF_VERSION != 5026001 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" +#endif #include "google/protobuf/port_undef.inc" #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -58,17 +55,19 @@ #define PROTOBUF_INTERNAL_EXPORT_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto AGONES_EXPORT -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { namespace internal { class AnyMetadata; } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct AGONES_EXPORT TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto { static const ::uint32_t offsets[]; }; -AGONES_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable +AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; namespace grpc { namespace gateway { @@ -168,68 +167,10 @@ AGONES_EXPORT extern TagDefaultTypeInternal _Tag_default_instance_; } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc -PROTOBUF_NAMESPACE_OPEN -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Header* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Header>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Info* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Info>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::License* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::License>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Operation* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Operation>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Response* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Response>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Swagger* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Swagger>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse>(Arena*); -template <> -AGONES_EXPORT ::grpc::gateway::protoc_gen_openapiv2::options::Tag* Arena::CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Tag>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google namespace grpc { namespace gateway { @@ -251,10 +192,11 @@ enum JSONSchema_JSONSchemaSimpleTypes : int { }; AGONES_EXPORT bool JSONSchema_JSONSchemaSimpleTypes_IsValid(int value); +AGONES_EXPORT extern const uint32_t JSONSchema_JSONSchemaSimpleTypes_internal_data_[]; constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MIN = static_cast(0); constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MAX = static_cast(7); constexpr int JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_ARRAYSIZE = 7 + 1; -AGONES_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* JSONSchema_JSONSchemaSimpleTypes_descriptor(); template const std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { @@ -265,12 +207,12 @@ const std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { } template <> inline const std::string& JSONSchema_JSONSchemaSimpleTypes_Name(JSONSchema_JSONSchemaSimpleTypes value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool JSONSchema_JSONSchemaSimpleTypes_Parse(absl::string_view name, JSONSchema_JSONSchemaSimpleTypes* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( JSONSchema_JSONSchemaSimpleTypes_descriptor(), name, value); } enum SecurityScheme_Type : int { @@ -285,10 +227,11 @@ enum SecurityScheme_Type : int { }; AGONES_EXPORT bool SecurityScheme_Type_IsValid(int value); +AGONES_EXPORT extern const uint32_t SecurityScheme_Type_internal_data_[]; constexpr SecurityScheme_Type SecurityScheme_Type_Type_MIN = static_cast(0); constexpr SecurityScheme_Type SecurityScheme_Type_Type_MAX = static_cast(3); constexpr int SecurityScheme_Type_Type_ARRAYSIZE = 3 + 1; -AGONES_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* SecurityScheme_Type_descriptor(); template const std::string& SecurityScheme_Type_Name(T value) { @@ -299,12 +242,12 @@ const std::string& SecurityScheme_Type_Name(T value) { } template <> inline const std::string& SecurityScheme_Type_Name(SecurityScheme_Type value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool SecurityScheme_Type_Parse(absl::string_view name, SecurityScheme_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( SecurityScheme_Type_descriptor(), name, value); } enum SecurityScheme_In : int { @@ -318,10 +261,11 @@ enum SecurityScheme_In : int { }; AGONES_EXPORT bool SecurityScheme_In_IsValid(int value); +AGONES_EXPORT extern const uint32_t SecurityScheme_In_internal_data_[]; constexpr SecurityScheme_In SecurityScheme_In_In_MIN = static_cast(0); constexpr SecurityScheme_In SecurityScheme_In_In_MAX = static_cast(2); constexpr int SecurityScheme_In_In_ARRAYSIZE = 2 + 1; -AGONES_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* SecurityScheme_In_descriptor(); template const std::string& SecurityScheme_In_Name(T value) { @@ -332,12 +276,12 @@ const std::string& SecurityScheme_In_Name(T value) { } template <> inline const std::string& SecurityScheme_In_Name(SecurityScheme_In value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool SecurityScheme_In_Parse(absl::string_view name, SecurityScheme_In* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( SecurityScheme_In_descriptor(), name, value); } enum SecurityScheme_Flow : int { @@ -353,10 +297,11 @@ enum SecurityScheme_Flow : int { }; AGONES_EXPORT bool SecurityScheme_Flow_IsValid(int value); +AGONES_EXPORT extern const uint32_t SecurityScheme_Flow_internal_data_[]; constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MIN = static_cast(0); constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MAX = static_cast(4); constexpr int SecurityScheme_Flow_Flow_ARRAYSIZE = 4 + 1; -AGONES_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* SecurityScheme_Flow_descriptor(); template const std::string& SecurityScheme_Flow_Name(T value) { @@ -367,12 +312,12 @@ const std::string& SecurityScheme_Flow_Name(T value) { } template <> inline const std::string& SecurityScheme_Flow_Name(SecurityScheme_Flow value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool SecurityScheme_Flow_Parse(absl::string_view name, SecurityScheme_Flow* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( SecurityScheme_Flow_descriptor(), name, value); } enum Scheme : int { @@ -388,10 +333,11 @@ enum Scheme : int { }; AGONES_EXPORT bool Scheme_IsValid(int value); +AGONES_EXPORT extern const uint32_t Scheme_internal_data_[]; constexpr Scheme Scheme_MIN = static_cast(0); constexpr Scheme Scheme_MAX = static_cast(4); constexpr int Scheme_ARRAYSIZE = 4 + 1; -AGONES_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* Scheme_descriptor(); template const std::string& Scheme_Name(T value) { @@ -402,12 +348,12 @@ const std::string& Scheme_Name(T value) { } template <> inline const std::string& Scheme_Name(Scheme value) { - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfDenseEnum( static_cast(value)); } inline bool Scheme_Parse(absl::string_view name, Scheme* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + return ::google::protobuf::internal::ParseNamedEnum( Scheme_descriptor(), name, value); } @@ -416,82 +362,273 @@ inline bool Scheme_Parse(absl::string_view name, Scheme* value) { // ------------------------------------------------------------------- -class Swagger_ResponsesEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Swagger_ResponsesEntry_DoNotUse(); +class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) */ { + public: + inline SecurityRequirement_SecurityRequirementValue() : SecurityRequirement_SecurityRequirementValue(nullptr) {} + ~SecurityRequirement_SecurityRequirementValue() override; template - explicit PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Swagger_ResponsesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Swagger_ResponsesEntry_DoNotUse& other); - static const Swagger_ResponsesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Swagger_ResponsesEntry_DoNotUse_default_instance_); } + explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue( + ::google::protobuf::internal::ConstantInitialized); + + inline SecurityRequirement_SecurityRequirementValue(const SecurityRequirement_SecurityRequirementValue& from) : SecurityRequirement_SecurityRequirementValue(nullptr, from) {} + inline SecurityRequirement_SecurityRequirementValue(SecurityRequirement_SecurityRequirementValue&& from) noexcept + : SecurityRequirement_SecurityRequirementValue(nullptr, std::move(from)) {} + inline SecurityRequirement_SecurityRequirementValue& operator=(const SecurityRequirement_SecurityRequirementValue& from) { + CopyFrom(from); + return *this; + } + inline SecurityRequirement_SecurityRequirementValue& operator=(SecurityRequirement_SecurityRequirementValue&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SecurityRequirement_SecurityRequirementValue& default_instance() { + return *internal_default_instance(); + } + static inline const SecurityRequirement_SecurityRequirementValue* internal_default_instance() { + return reinterpret_cast( + &_SecurityRequirement_SecurityRequirementValue_default_instance_); + } + static constexpr int kIndexInFileMessages = 25; + friend void swap(SecurityRequirement_SecurityRequirementValue& a, SecurityRequirement_SecurityRequirementValue& b) { a.Swap(&b); } + inline void Swap(SecurityRequirement_SecurityRequirementValue* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SecurityRequirement_SecurityRequirementValue* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SecurityRequirement_SecurityRequirementValue* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SecurityRequirement_SecurityRequirementValue& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SecurityRequirement_SecurityRequirementValue& from) { SecurityRequirement_SecurityRequirementValue::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(SecurityRequirement_SecurityRequirementValue* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"; } + + protected: + explicit SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* arena); + SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* arena, const SecurityRequirement_SecurityRequirementValue& from); + SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* arena, SecurityRequirement_SecurityRequirementValue&& from) noexcept + : SecurityRequirement_SecurityRequirementValue(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kScopeFieldNumber = 1, + }; + // repeated string scope = 1; + int scope_size() const; + private: + int _internal_scope_size() const; + + public: + void clear_scope() ; + const std::string& scope(int index) const; + std::string* mutable_scope(int index); + void set_scope(int index, const std::string& value); + void set_scope(int index, std::string&& value); + void set_scope(int index, const char* value); + void set_scope(int index, const char* value, std::size_t size); + void set_scope(int index, absl::string_view value); + std::string* add_scope(); + void add_scope(const std::string& value); + void add_scope(std::string&& value); + void add_scope(const char* value); + void add_scope(const char* value, std::size_t size); + void add_scope(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& scope() const; + ::google::protobuf::RepeatedPtrField* mutable_scope(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_scope() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_scope(); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 100, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::RepeatedPtrField scope_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- + +class Scopes_ScopeEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Scopes_ScopeEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Scopes_ScopeEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + Scopes_ScopeEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Scopes_ScopeEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Scopes_ScopeEntry_DoNotUse_default_instance_); + } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry.key"); + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry.key"); } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + static bool ValidateValue(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry.value"); + } + ::google::protobuf::Metadata GetMetadata() const final; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class Swagger_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Swagger_ExtensionsEntry_DoNotUse(); +class Response_ExamplesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Response_ExamplesEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Response_ExamplesEntry_DoNotUse, std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + Response_ExamplesEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Swagger_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Swagger_ExtensionsEntry_DoNotUse& other); - static const Swagger_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Swagger_ExtensionsEntry_DoNotUse_default_instance_); } + explicit PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Response_ExamplesEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Response_ExamplesEntry_DoNotUse_default_instance_); + } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry.key"); + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry.key"); } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + static bool ValidateValue(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry.value"); + } + ::google::protobuf::Metadata GetMetadata() const final; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT Swagger final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Swagger) */ { +class AGONES_EXPORT License final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.License) */ { public: - inline Swagger() : Swagger(nullptr) {} - ~Swagger() override; - template - explicit PROTOBUF_CONSTEXPR Swagger(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Swagger(const Swagger& from); - Swagger(Swagger&& from) noexcept - : Swagger() { - *this = ::std::move(from); - } + inline License() : License(nullptr) {} + ~License() override; + template + explicit PROTOBUF_CONSTEXPR License( + ::google::protobuf::internal::ConstantInitialized); - inline Swagger& operator=(const Swagger& from) { + inline License(const License& from) : License(nullptr, from) {} + inline License(License&& from) noexcept + : License(nullptr, std::move(from)) {} + inline License& operator=(const License& from) { CopyFrom(from); return *this; } - inline Swagger& operator=(Swagger&& from) noexcept { + inline License& operator=(License&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -500,892 +637,189 @@ class AGONES_EXPORT Swagger final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Swagger& default_instance() { + static const License& default_instance() { return *internal_default_instance(); } - static inline const Swagger* internal_default_instance() { - return reinterpret_cast( - &_Swagger_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Swagger& a, Swagger& b) { - a.Swap(&b); + static inline const License* internal_default_instance() { + return reinterpret_cast( + &_License_default_instance_); } - inline void Swap(Swagger* other) { + static constexpr int kIndexInFileMessages = 14; + friend void swap(License& a, License& b) { a.Swap(&b); } + inline void Swap(License* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Swagger* other) { + void UnsafeArenaSwap(License* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Swagger* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Swagger& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Swagger& from) { - Swagger::MergeImpl(*this, from); + License* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const License& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const License& from) { License::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Swagger* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Swagger"; + void InternalSwap(License* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.License"; } + + protected: + explicit License(::google::protobuf::Arena* arena); + License(::google::protobuf::Arena* arena, const License& from); + License(::google::protobuf::Arena* arena, License&& from) noexcept + : License(arena) { + *this = ::std::move(from); } - protected: - explicit Swagger(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { - kSchemesFieldNumber = 5, - kConsumesFieldNumber = 6, - kProducesFieldNumber = 7, - kResponsesFieldNumber = 10, - kSecurityFieldNumber = 12, - kExtensionsFieldNumber = 15, - kSwaggerFieldNumber = 1, - kHostFieldNumber = 3, - kBasePathFieldNumber = 4, - kInfoFieldNumber = 2, - kSecurityDefinitionsFieldNumber = 11, - kExternalDocsFieldNumber = 14, + kNameFieldNumber = 1, + kUrlFieldNumber = 2, }; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - int schemes_size() const; + // string name = 1; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + private: - int _internal_schemes_size() const; + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); public: - void clear_schemes() ; - public: - ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; - void set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - void add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& schemes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_schemes(); + // string url = 2; + void clear_url() ; + const std::string& url() const; + template + void set_url(Arg_&& arg, Args_... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* value); private: - ::grpc::gateway::protoc_gen_openapiv2::options::Scheme _internal_schemes(int index) const; - void _internal_add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& _internal_schemes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_schemes(); + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( + const std::string& value); + std::string* _internal_mutable_url(); public: - // repeated string consumes = 6; - int consumes_size() const; - private: - int _internal_consumes_size() const; + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 65, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr url_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - public: - void clear_consumes() ; - const std::string& consumes(int index) const; - std::string* mutable_consumes(int index); - void set_consumes(int index, const std::string& value); - void set_consumes(int index, std::string&& value); - void set_consumes(int index, const char* value); - void set_consumes(int index, const char* value, std::size_t size); - void set_consumes(int index, absl::string_view value); - std::string* add_consumes(); - void add_consumes(const std::string& value); - void add_consumes(std::string&& value); - void add_consumes(const char* value); - void add_consumes(const char* value, std::size_t size); - void add_consumes(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& consumes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_consumes(); - - private: - const std::string& _internal_consumes(int index) const; - std::string* _internal_add_consumes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_consumes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_consumes(); - - public: - // repeated string produces = 7; - int produces_size() const; - private: - int _internal_produces_size() const; - - public: - void clear_produces() ; - const std::string& produces(int index) const; - std::string* mutable_produces(int index); - void set_produces(int index, const std::string& value); - void set_produces(int index, std::string&& value); - void set_produces(int index, const char* value); - void set_produces(int index, const char* value, std::size_t size); - void set_produces(int index, absl::string_view value); - std::string* add_produces(); - void add_produces(const std::string& value); - void add_produces(std::string&& value); - void add_produces(const char* value); - void add_produces(const char* value, std::size_t size); - void add_produces(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& produces() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_produces(); - - private: - const std::string& _internal_produces(int index) const; - std::string* _internal_add_produces(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_produces() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_produces(); - - public: - // map responses = 10; - int responses_size() const; - private: - int _internal_responses_size() const; - - public: - void clear_responses() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& - _internal_responses() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* - _internal_mutable_responses(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& - responses() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* - mutable_responses(); - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - int security_size() const; - private: - int _internal_security_size() const; - - public: - void clear_security() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* mutable_security(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >* - mutable_security(); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& _internal_security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _internal_add_security(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& _internal_security() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* _internal_mutable_security(); - public: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* add_security(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >& - security() const; - // map extensions = 15; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); - // string swagger = 1; - void clear_swagger() ; - const std::string& swagger() const; - - - - - template - void set_swagger(Arg_&& arg, Args_... args); - std::string* mutable_swagger(); - PROTOBUF_NODISCARD std::string* release_swagger(); - void set_allocated_swagger(std::string* ptr); - - private: - const std::string& _internal_swagger() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_swagger( - const std::string& value); - std::string* _internal_mutable_swagger(); - - public: - // string host = 3; - void clear_host() ; - const std::string& host() const; - - - - - template - void set_host(Arg_&& arg, Args_... args); - std::string* mutable_host(); - PROTOBUF_NODISCARD std::string* release_host(); - void set_allocated_host(std::string* ptr); - - private: - const std::string& _internal_host() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_host( - const std::string& value); - std::string* _internal_mutable_host(); - - public: - // string base_path = 4; - void clear_base_path() ; - const std::string& base_path() const; - - - - - template - void set_base_path(Arg_&& arg, Args_... args); - std::string* mutable_base_path(); - PROTOBUF_NODISCARD std::string* release_base_path(); - void set_allocated_base_path(std::string* ptr); - - private: - const std::string& _internal_base_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_base_path( - const std::string& value); - std::string* _internal_mutable_base_path(); - - public: - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - bool has_info() const; - void clear_info() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Info* release_info(); - ::grpc::gateway::protoc_gen_openapiv2::options::Info* mutable_info(); - void set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* info); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Info& _internal_info() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Info* _internal_mutable_info(); - public: - void unsafe_arena_set_allocated_info( - ::grpc::gateway::protoc_gen_openapiv2::options::Info* info); - ::grpc::gateway::protoc_gen_openapiv2::options::Info* unsafe_arena_release_info(); - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - bool has_security_definitions() const; - void clear_security_definitions() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* release_security_definitions(); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* mutable_security_definitions(); - void set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& _internal_security_definitions() const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* _internal_mutable_security_definitions(); - public: - void unsafe_arena_set_allocated_security_definitions( - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* unsafe_arena_release_security_definitions(); - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - bool has_external_docs() const; - void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); - void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); - public: - void unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField schemes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _schemes_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField consumes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField produces_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Swagger_ResponsesEntry_DoNotUse, - std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> responses_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement > security_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Swagger_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swagger_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr host_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr base_path_; - ::grpc::gateway::protoc_gen_openapiv2::options::Info* info_; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions_; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class Operation_ResponsesEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Operation_ResponsesEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Operation_ResponsesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Operation_ResponsesEntry_DoNotUse& other); - static const Operation_ResponsesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Operation_ResponsesEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -}; -// ------------------------------------------------------------------- - -class Operation_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Operation_ExtensionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Operation_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Operation_ExtensionsEntry_DoNotUse& other); - static const Operation_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Operation_ExtensionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -}; -// ------------------------------------------------------------------- - -class AGONES_EXPORT Operation final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Operation) */ { - public: - inline Operation() : Operation(nullptr) {} - ~Operation() override; - template - explicit PROTOBUF_CONSTEXPR Operation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Operation(const Operation& from); - Operation(Operation&& from) noexcept - : Operation() { - *this = ::std::move(from); - } - - inline Operation& operator=(const Operation& from) { - CopyFrom(from); - return *this; - } - inline Operation& operator=(Operation&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Operation& default_instance() { - return *internal_default_instance(); - } - static inline const Operation* internal_default_instance() { - return reinterpret_cast( - &_Operation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Operation& a, Operation& b) { - a.Swap(&b); - } - inline void Swap(Operation* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Operation* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Operation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Operation& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Operation& from) { - Operation::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Operation* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Operation"; - } - protected: - explicit Operation(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - enum : int { - kTagsFieldNumber = 1, - kConsumesFieldNumber = 6, - kProducesFieldNumber = 7, - kResponsesFieldNumber = 9, - kSchemesFieldNumber = 10, - kSecurityFieldNumber = 12, - kExtensionsFieldNumber = 13, - kSummaryFieldNumber = 2, - kDescriptionFieldNumber = 3, - kOperationIdFieldNumber = 5, - kExternalDocsFieldNumber = 4, - kDeprecatedFieldNumber = 11, - }; - // repeated string tags = 1; - int tags_size() const; - private: - int _internal_tags_size() const; - - public: - void clear_tags() ; - const std::string& tags(int index) const; - std::string* mutable_tags(int index); - void set_tags(int index, const std::string& value); - void set_tags(int index, std::string&& value); - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, std::size_t size); - void set_tags(int index, absl::string_view value); - std::string* add_tags(); - void add_tags(const std::string& value); - void add_tags(std::string&& value); - void add_tags(const char* value); - void add_tags(const char* value, std::size_t size); - void add_tags(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& tags() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_tags(); - - private: - const std::string& _internal_tags(int index) const; - std::string* _internal_add_tags(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_tags() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_tags(); - - public: - // repeated string consumes = 6; - int consumes_size() const; - private: - int _internal_consumes_size() const; - - public: - void clear_consumes() ; - const std::string& consumes(int index) const; - std::string* mutable_consumes(int index); - void set_consumes(int index, const std::string& value); - void set_consumes(int index, std::string&& value); - void set_consumes(int index, const char* value); - void set_consumes(int index, const char* value, std::size_t size); - void set_consumes(int index, absl::string_view value); - std::string* add_consumes(); - void add_consumes(const std::string& value); - void add_consumes(std::string&& value); - void add_consumes(const char* value); - void add_consumes(const char* value, std::size_t size); - void add_consumes(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& consumes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_consumes(); - - private: - const std::string& _internal_consumes(int index) const; - std::string* _internal_add_consumes(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_consumes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_consumes(); - - public: - // repeated string produces = 7; - int produces_size() const; - private: - int _internal_produces_size() const; - - public: - void clear_produces() ; - const std::string& produces(int index) const; - std::string* mutable_produces(int index); - void set_produces(int index, const std::string& value); - void set_produces(int index, std::string&& value); - void set_produces(int index, const char* value); - void set_produces(int index, const char* value, std::size_t size); - void set_produces(int index, absl::string_view value); - std::string* add_produces(); - void add_produces(const std::string& value); - void add_produces(std::string&& value); - void add_produces(const char* value); - void add_produces(const char* value, std::size_t size); - void add_produces(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& produces() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_produces(); - - private: - const std::string& _internal_produces(int index) const; - std::string* _internal_add_produces(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_produces() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_produces(); - - public: - // map responses = 9; - int responses_size() const; - private: - int _internal_responses_size() const; - - public: - void clear_responses() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& - _internal_responses() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* - _internal_mutable_responses(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& - responses() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* - mutable_responses(); - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - int schemes_size() const; - private: - int _internal_schemes_size() const; - - public: - void clear_schemes() ; - public: - ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; - void set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - void add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& schemes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_schemes(); - - private: - ::grpc::gateway::protoc_gen_openapiv2::options::Scheme _internal_schemes(int index) const; - void _internal_add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& _internal_schemes() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_schemes(); - - public: - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - int security_size() const; - private: - int _internal_security_size() const; - - public: - void clear_security() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* mutable_security(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >* - mutable_security(); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& _internal_security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _internal_add_security(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& _internal_security() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* _internal_mutable_security(); - public: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* add_security(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >& - security() const; - // map extensions = 13; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); - // string summary = 2; - void clear_summary() ; - const std::string& summary() const; - - - - - template - void set_summary(Arg_&& arg, Args_... args); - std::string* mutable_summary(); - PROTOBUF_NODISCARD std::string* release_summary(); - void set_allocated_summary(std::string* ptr); - - private: - const std::string& _internal_summary() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_summary( - const std::string& value); - std::string* _internal_mutable_summary(); - - public: - // string description = 3; - void clear_description() ; - const std::string& description() const; - - - - - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); - - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - - public: - // string operation_id = 5; - void clear_operation_id() ; - const std::string& operation_id() const; - - - - - template - void set_operation_id(Arg_&& arg, Args_... args); - std::string* mutable_operation_id(); - PROTOBUF_NODISCARD std::string* release_operation_id(); - void set_allocated_operation_id(std::string* ptr); - - private: - const std::string& _internal_operation_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_operation_id( - const std::string& value); - std::string* _internal_mutable_operation_id(); - - public: - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - bool has_external_docs() const; - void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); - void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); - public: - void unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); - // bool deprecated = 11; - void clear_deprecated() ; - bool deprecated() const; - void set_deprecated(bool value); - - private: - bool _internal_deprecated() const; - void _internal_set_deprecated(bool value); - - public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField tags_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField consumes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField produces_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Operation_ResponsesEntry_DoNotUse, - std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> responses_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField schemes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _schemes_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement > security_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Operation_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr summary_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operation_id_; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; - bool deprecated_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class AGONES_EXPORT Header final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Header) */ { +class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) */ { public: - inline Header() : Header(nullptr) {} - ~Header() override; - template - explicit PROTOBUF_CONSTEXPR Header(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Header(const Header& from); - Header(Header&& from) noexcept - : Header() { - *this = ::std::move(from); - } + inline JSONSchema_FieldConfiguration() : JSONSchema_FieldConfiguration(nullptr) {} + ~JSONSchema_FieldConfiguration() override; + template + explicit PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration( + ::google::protobuf::internal::ConstantInitialized); - inline Header& operator=(const Header& from) { + inline JSONSchema_FieldConfiguration(const JSONSchema_FieldConfiguration& from) : JSONSchema_FieldConfiguration(nullptr, from) {} + inline JSONSchema_FieldConfiguration(JSONSchema_FieldConfiguration&& from) noexcept + : JSONSchema_FieldConfiguration(nullptr, std::move(from)) {} + inline JSONSchema_FieldConfiguration& operator=(const JSONSchema_FieldConfiguration& from) { CopyFrom(from); return *this; } - inline Header& operator=(Header&& from) noexcept { + inline JSONSchema_FieldConfiguration& operator=(JSONSchema_FieldConfiguration&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1394,331 +828,171 @@ class AGONES_EXPORT Header final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Header& default_instance() { + static const JSONSchema_FieldConfiguration& default_instance() { return *internal_default_instance(); } - static inline const Header* internal_default_instance() { - return reinterpret_cast( - &_Header_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(Header& a, Header& b) { - a.Swap(&b); + static inline const JSONSchema_FieldConfiguration* internal_default_instance() { + return reinterpret_cast( + &_JSONSchema_FieldConfiguration_default_instance_); } - inline void Swap(Header* other) { + static constexpr int kIndexInFileMessages = 17; + friend void swap(JSONSchema_FieldConfiguration& a, JSONSchema_FieldConfiguration& b) { a.Swap(&b); } + inline void Swap(JSONSchema_FieldConfiguration* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Header* other) { + void UnsafeArenaSwap(JSONSchema_FieldConfiguration* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Header* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage
(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Header& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Header& from) { - Header::MergeImpl(*this, from); + JSONSchema_FieldConfiguration* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const JSONSchema_FieldConfiguration& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const JSONSchema_FieldConfiguration& from) { JSONSchema_FieldConfiguration::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Header* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Header"; + void InternalSwap(JSONSchema_FieldConfiguration* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration"; } + + protected: + explicit JSONSchema_FieldConfiguration(::google::protobuf::Arena* arena); + JSONSchema_FieldConfiguration(::google::protobuf::Arena* arena, const JSONSchema_FieldConfiguration& from); + JSONSchema_FieldConfiguration(::google::protobuf::Arena* arena, JSONSchema_FieldConfiguration&& from) noexcept + : JSONSchema_FieldConfiguration(arena) { + *this = ::std::move(from); } - protected: - explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDescriptionFieldNumber = 1, - kTypeFieldNumber = 2, - kFormatFieldNumber = 3, - kDefaultFieldNumber = 6, - kPatternFieldNumber = 13, + kPathParamNameFieldNumber = 47, }; - // string description = 1; - void clear_description() ; - const std::string& description() const; - - - - - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); - - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - - public: - // string type = 2; - void clear_type() ; - const std::string& type() const; - - - - - template - void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* ptr); - - private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); - - public: - // string format = 3; - void clear_format() ; - const std::string& format() const; - - - - - template - void set_format(Arg_&& arg, Args_... args); - std::string* mutable_format(); - PROTOBUF_NODISCARD std::string* release_format(); - void set_allocated_format(std::string* ptr); - - private: - const std::string& _internal_format() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_format( - const std::string& value); - std::string* _internal_mutable_format(); - - public: - // string default = 6; - void clear_default_() ; - const std::string& default_() const; - - - - - template - void set_default_(Arg_&& arg, Args_... args); - std::string* mutable_default_(); - PROTOBUF_NODISCARD std::string* release_default_(); - void set_allocated_default_(std::string* ptr); - - private: - const std::string& _internal_default_() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_( - const std::string& value); - std::string* _internal_mutable_default_(); - - public: - // string pattern = 13; - void clear_pattern() ; - const std::string& pattern() const; - - - - + // string path_param_name = 47; + void clear_path_param_name() ; + const std::string& path_param_name() const; template - void set_pattern(Arg_&& arg, Args_... args); - std::string* mutable_pattern(); - PROTOBUF_NODISCARD std::string* release_pattern(); - void set_allocated_pattern(std::string* ptr); + void set_path_param_name(Arg_&& arg, Args_... args); + std::string* mutable_path_param_name(); + PROTOBUF_NODISCARD std::string* release_path_param_name(); + void set_allocated_path_param_name(std::string* value); private: - const std::string& _internal_pattern() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pattern( + const std::string& _internal_path_param_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path_param_name( const std::string& value); - std::string* _internal_mutable_pattern(); - - public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr format_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pattern_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class Response_HeadersEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Response_HeadersEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Response_HeadersEntry_DoNotUse& other); - static const Response_HeadersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Response_HeadersEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -}; -// ------------------------------------------------------------------- - -class Response_ExamplesEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Response_ExamplesEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Response_ExamplesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Response_ExamplesEntry_DoNotUse& other); - static const Response_ExamplesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Response_ExamplesEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -}; -// ------------------------------------------------------------------- + std::string* _internal_mutable_path_param_name(); -class Response_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Response_ExtensionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Response_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Response_ExtensionsEntry_DoNotUse& other); - static const Response_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Response_ExtensionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 95, 7> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr path_param_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT Response final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Response) */ { +class AGONES_EXPORT Header final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Header) */ { public: - inline Response() : Response(nullptr) {} - ~Response() override; - template - explicit PROTOBUF_CONSTEXPR Response(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Response(const Response& from); - Response(Response&& from) noexcept - : Response() { - *this = ::std::move(from); - } + inline Header() : Header(nullptr) {} + ~Header() override; + template + explicit PROTOBUF_CONSTEXPR Header( + ::google::protobuf::internal::ConstantInitialized); - inline Response& operator=(const Response& from) { + inline Header(const Header& from) : Header(nullptr, from) {} + inline Header(Header&& from) noexcept + : Header(nullptr, std::move(from)) {} + inline Header& operator=(const Header& from) { CopyFrom(from); return *this; } - inline Response& operator=(Response&& from) noexcept { + inline Header& operator=(Header&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -1727,172 +1001,115 @@ class AGONES_EXPORT Response final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Response& default_instance() { + static const Header& default_instance() { return *internal_default_instance(); } - static inline const Response* internal_default_instance() { - return reinterpret_cast( - &_Response_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(Response& a, Response& b) { - a.Swap(&b); + static inline const Header* internal_default_instance() { + return reinterpret_cast( + &_Header_default_instance_); } - inline void Swap(Response* other) { + static constexpr int kIndexInFileMessages = 6; + friend void swap(Header& a, Header& b) { a.Swap(&b); } + inline void Swap(Header* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Response* other) { + void UnsafeArenaSwap(Header* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Response* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Response& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Response& from) { - Response::MergeImpl(*this, from); + Header* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct
(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Header& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Header& from) { Header::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Response* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Response"; + void InternalSwap(Header* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Header"; } + + protected: + explicit Header(::google::protobuf::Arena* arena); + Header(::google::protobuf::Arena* arena, const Header& from); + Header(::google::protobuf::Arena* arena, Header&& from) noexcept + : Header(arena) { + *this = ::std::move(from); } - protected: - explicit Response(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { - kHeadersFieldNumber = 3, - kExamplesFieldNumber = 4, - kExtensionsFieldNumber = 5, kDescriptionFieldNumber = 1, - kSchemaFieldNumber = 2, + kTypeFieldNumber = 2, + kFormatFieldNumber = 3, + kDefaultFieldNumber = 6, + kPatternFieldNumber = 13, }; - // map headers = 3; - int headers_size() const; - private: - int _internal_headers_size() const; - - public: - void clear_headers() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >& - _internal_headers() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >* - _internal_mutable_headers(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >& - headers() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >* - mutable_headers(); - // map examples = 4; - int examples_size() const; - private: - int _internal_examples_size() const; - - public: - void clear_examples() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_examples() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_examples(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - examples() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_examples(); - // map extensions = 5; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); // string description = 1; void clear_description() ; const std::string& description() const; - - - - template void set_description(Arg_&& arg, Args_... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); + void set_allocated_description(std::string* value); private: const std::string& _internal_description() const; @@ -1901,102 +1118,126 @@ class AGONES_EXPORT Response final : std::string* _internal_mutable_description(); public: - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - bool has_schema() const; - void clear_schema() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& schema() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Schema* release_schema(); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* mutable_schema(); - void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema); + // string type = 2; + void clear_type() ; + const std::string& type() const; + template + void set_type(Arg_&& arg, Args_... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* value); + private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* _internal_mutable_schema(); + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( + const std::string& value); + std::string* _internal_mutable_type(); + public: - void unsafe_arena_set_allocated_schema( - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* unsafe_arena_release_schema(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) + // string format = 3; + void clear_format() ; + const std::string& format() const; + template + void set_format(Arg_&& arg, Args_... args); + std::string* mutable_format(); + PROTOBUF_NODISCARD std::string* release_format(); + void set_allocated_format(std::string* value); + + private: + const std::string& _internal_format() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_format( + const std::string& value); + std::string* _internal_mutable_format(); + + public: + // string default = 6; + void clear_default_() ; + const std::string& default_() const; + template + void set_default_(Arg_&& arg, Args_... args); + std::string* mutable_default_(); + PROTOBUF_NODISCARD std::string* release_default_(); + void set_allocated_default_(std::string* value); + + private: + const std::string& _internal_default_() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_( + const std::string& value); + std::string* _internal_mutable_default_(); + + public: + // string pattern = 13; + void clear_pattern() ; + const std::string& pattern() const; + template + void set_pattern(Arg_&& arg, Args_... args); + std::string* mutable_pattern(); + PROTOBUF_NODISCARD std::string* release_pattern(); + void set_allocated_pattern(std::string* value); + + private: + const std::string& _internal_pattern() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pattern( + const std::string& value); + std::string* _internal_mutable_pattern(); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 5, 0, + 92, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Response_HeadersEntry_DoNotUse, - std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> headers_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Response_ExamplesEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> examples_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Response_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr type_; + ::google::protobuf::internal::ArenaStringPtr format_; + ::google::protobuf::internal::ArenaStringPtr default__; + ::google::protobuf::internal::ArenaStringPtr pattern_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class Info_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Info_ExtensionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Info_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Info_ExtensionsEntry_DoNotUse& other); - static const Info_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Info_ExtensionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT Info final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Info) */ { +class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) */ { public: - inline Info() : Info(nullptr) {} - ~Info() override; - template - explicit PROTOBUF_CONSTEXPR Info(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Info(const Info& from); - Info(Info&& from) noexcept - : Info() { - *this = ::std::move(from); - } + inline ExternalDocumentation() : ExternalDocumentation(nullptr) {} + ~ExternalDocumentation() override; + template + explicit PROTOBUF_CONSTEXPR ExternalDocumentation( + ::google::protobuf::internal::ConstantInitialized); - inline Info& operator=(const Info& from) { + inline ExternalDocumentation(const ExternalDocumentation& from) : ExternalDocumentation(nullptr, from) {} + inline ExternalDocumentation(ExternalDocumentation&& from) noexcept + : ExternalDocumentation(nullptr, std::move(from)) {} + inline ExternalDocumentation& operator=(const ExternalDocumentation& from) { CopyFrom(from); return *this; } - inline Info& operator=(Info&& from) noexcept { + inline ExternalDocumentation& operator=(ExternalDocumentation&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2005,160 +1246,112 @@ class AGONES_EXPORT Info final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Info& default_instance() { - return *internal_default_instance(); - } - static inline const Info* internal_default_instance() { - return reinterpret_cast( - &_Info_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(Info& a, Info& b) { - a.Swap(&b); - } - inline void Swap(Info* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Info* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Info* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Info& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Info& from) { - Info::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Info* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Info"; - } - protected: - explicit Info(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - enum : int { - kExtensionsFieldNumber = 7, - kTitleFieldNumber = 1, - kDescriptionFieldNumber = 2, - kTermsOfServiceFieldNumber = 3, - kVersionFieldNumber = 6, - kContactFieldNumber = 4, - kLicenseFieldNumber = 5, - }; - // map extensions = 7; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); - // string title = 1; - void clear_title() ; - const std::string& title() const; - - + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const ExternalDocumentation& default_instance() { + return *internal_default_instance(); + } + static inline const ExternalDocumentation* internal_default_instance() { + return reinterpret_cast( + &_ExternalDocumentation_default_instance_); + } + static constexpr int kIndexInFileMessages = 15; + friend void swap(ExternalDocumentation& a, ExternalDocumentation& b) { a.Swap(&b); } + inline void Swap(ExternalDocumentation* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ExternalDocumentation* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + // implements Message ---------------------------------------------- - template - void set_title(Arg_&& arg, Args_... args); - std::string* mutable_title(); - PROTOBUF_NODISCARD std::string* release_title(); - void set_allocated_title(std::string* ptr); + ExternalDocumentation* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ExternalDocumentation& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ExternalDocumentation& from) { ExternalDocumentation::MergeImpl(*this, from); } private: - const std::string& _internal_title() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_title( - const std::string& value); - std::string* _internal_mutable_title(); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: - // string description = 2; - void clear_description() ; - const std::string& description() const; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + private: + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(ExternalDocumentation* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation"; } + + protected: + explicit ExternalDocumentation(::google::protobuf::Arena* arena); + ExternalDocumentation(::google::protobuf::Arena* arena, const ExternalDocumentation& from); + ExternalDocumentation(::google::protobuf::Arena* arena, ExternalDocumentation&& from) noexcept + : ExternalDocumentation(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + enum : int { + kDescriptionFieldNumber = 1, + kUrlFieldNumber = 2, + }; + // string description = 1; + void clear_description() ; + const std::string& description() const; template void set_description(Arg_&& arg, Args_... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); + void set_allocated_description(std::string* value); private: const std::string& _internal_description() const; @@ -2167,124 +1360,75 @@ class AGONES_EXPORT Info final : std::string* _internal_mutable_description(); public: - // string terms_of_service = 3; - void clear_terms_of_service() ; - const std::string& terms_of_service() const; - - - - - template - void set_terms_of_service(Arg_&& arg, Args_... args); - std::string* mutable_terms_of_service(); - PROTOBUF_NODISCARD std::string* release_terms_of_service(); - void set_allocated_terms_of_service(std::string* ptr); - - private: - const std::string& _internal_terms_of_service() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_terms_of_service( - const std::string& value); - std::string* _internal_mutable_terms_of_service(); - - public: - // string version = 6; - void clear_version() ; - const std::string& version() const; - - - - + // string url = 2; + void clear_url() ; + const std::string& url() const; template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* ptr); + void set_url(Arg_&& arg, Args_... args); + std::string* mutable_url(); + PROTOBUF_NODISCARD std::string* release_url(); + void set_allocated_url(std::string* value); private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( + const std::string& _internal_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( const std::string& value); - std::string* _internal_mutable_version(); + std::string* _internal_mutable_url(); public: - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - bool has_contact() const; - void clear_contact() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Contact* release_contact(); - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* mutable_contact(); - void set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& _internal_contact() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* _internal_mutable_contact(); - public: - void unsafe_arena_set_allocated_contact( - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact); - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* unsafe_arena_release_contact(); - // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - bool has_license() const; - void clear_license() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::License* release_license(); - ::grpc::gateway::protoc_gen_openapiv2::options::License* mutable_license(); - void set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* license); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::License& _internal_license() const; - ::grpc::gateway::protoc_gen_openapiv2::options::License* _internal_mutable_license(); - public: - void unsafe_arena_set_allocated_license( - ::grpc::gateway::protoc_gen_openapiv2::options::License* license); - ::grpc::gateway::protoc_gen_openapiv2::options::License* unsafe_arena_release_license(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 86, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Info_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr terms_of_service_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact_; - ::grpc::gateway::protoc_gen_openapiv2::options::License* license_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr url_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT Contact final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Contact) */ { +class AGONES_EXPORT Contact final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Contact) */ { public: inline Contact() : Contact(nullptr) {} ~Contact() override; - template - explicit PROTOBUF_CONSTEXPR Contact(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Contact(const Contact& from); - Contact(Contact&& from) noexcept - : Contact() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR Contact( + ::google::protobuf::internal::ConstantInitialized); + inline Contact(const Contact& from) : Contact(nullptr, from) {} + inline Contact(Contact&& from) noexcept + : Contact(nullptr, std::move(from)) {} inline Contact& operator=(const Contact& from) { CopyFrom(from); return *this; } inline Contact& operator=(Contact&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2293,20 +1437,22 @@ class AGONES_EXPORT Contact final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Contact& default_instance() { @@ -2314,80 +1460,77 @@ class AGONES_EXPORT Contact final : } static inline const Contact* internal_default_instance() { return reinterpret_cast( - &_Contact_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(Contact& a, Contact& b) { - a.Swap(&b); + &_Contact_default_instance_); } + static constexpr int kIndexInFileMessages = 13; + friend void swap(Contact& a, Contact& b) { a.Swap(&b); } inline void Swap(Contact* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Contact* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Contact* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Contact* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Contact& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Contact& from) { - Contact::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Contact& from) { Contact::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(Contact* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Contact"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Contact"; } + + protected: + explicit Contact(::google::protobuf::Arena* arena); + Contact(::google::protobuf::Arena* arena, const Contact& from); + Contact(::google::protobuf::Arena* arena, Contact&& from) noexcept + : Contact(arena) { + *this = ::std::move(from); } - protected: - explicit Contact(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kUrlFieldNumber = 2, @@ -2396,15 +1539,11 @@ class AGONES_EXPORT Contact final : // string name = 1; void clear_name() ; const std::string& name() const; - - - - template void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* ptr); + void set_allocated_name(std::string* value); private: const std::string& _internal_name() const; @@ -2416,15 +1555,11 @@ class AGONES_EXPORT Contact final : // string url = 2; void clear_url() ; const std::string& url() const; - - - - template void set_url(Arg_&& arg, Args_... args); std::string* mutable_url(); PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* ptr); + void set_allocated_url(std::string* value); private: const std::string& _internal_url() const; @@ -2436,15 +1571,11 @@ class AGONES_EXPORT Contact final : // string email = 3; void clear_email() ; const std::string& email() const; - - - - template void set_email(Arg_&& arg, Args_... args); std::string* mutable_email(); PROTOBUF_NODISCARD std::string* release_email(); - void set_allocated_email(std::string* ptr); + void set_allocated_email(std::string* value); private: const std::string& _internal_email() const; @@ -2456,44 +1587,57 @@ class AGONES_EXPORT Contact final : // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Contact) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 0, + 70, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr email_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr url_; + ::google::protobuf::internal::ArenaStringPtr email_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT License final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.License) */ { +class AGONES_EXPORT Tag final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Tag) */ { public: - inline License() : License(nullptr) {} - ~License() override; - template - explicit PROTOBUF_CONSTEXPR License(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - License(const License& from); - License(License&& from) noexcept - : License() { - *this = ::std::move(from); - } + inline Tag() : Tag(nullptr) {} + ~Tag() override; + template + explicit PROTOBUF_CONSTEXPR Tag( + ::google::protobuf::internal::ConstantInitialized); - inline License& operator=(const License& from) { + inline Tag(const Tag& from) : Tag(nullptr, from) {} + inline Tag(Tag&& from) noexcept + : Tag(nullptr, std::move(from)) {} + inline Tag& operator=(const Tag& from) { CopyFrom(from); return *this; } - inline License& operator=(License&& from) noexcept { + inline Tag& operator=(Tag&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2502,185 +1646,273 @@ class AGONES_EXPORT License final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const License& default_instance() { + static const Tag& default_instance() { return *internal_default_instance(); } - static inline const License* internal_default_instance() { - return reinterpret_cast( - &_License_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(License& a, License& b) { - a.Swap(&b); + static inline const Tag* internal_default_instance() { + return reinterpret_cast( + &_Tag_default_instance_); } - inline void Swap(License* other) { + static constexpr int kIndexInFileMessages = 20; + friend void swap(Tag& a, Tag& b) { a.Swap(&b); } + inline void Swap(Tag* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(License* other) { + void UnsafeArenaSwap(Tag* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - License* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const License& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const License& from) { - License::MergeImpl(*this, from); + Tag* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Tag& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Tag& from) { Tag::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(License* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.License"; + void InternalSwap(Tag* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Tag"; } + + protected: + explicit Tag(::google::protobuf::Arena* arena); + Tag(::google::protobuf::Arena* arena, const Tag& from); + Tag(::google::protobuf::Arena* arena, Tag&& from) noexcept + : Tag(arena) { + *this = ::std::move(from); } - protected: - explicit License(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kUrlFieldNumber = 2, + kDescriptionFieldNumber = 2, + kExternalDocsFieldNumber = 3, }; - // string name = 1; - void clear_name() ; - const std::string& name() const; - - - - + // string description = 2; + void clear_description() ; + const std::string& description() const; template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* ptr); + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( const std::string& value); - std::string* _internal_mutable_name(); + std::string* _internal_mutable_description(); public: - // string url = 2; - void clear_url() ; - const std::string& url() const; - - - - - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* ptr); + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + bool has_external_docs() const; + void clear_external_docs() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); + void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + void unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 65, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- + +class Swagger_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Swagger_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Swagger_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Swagger_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Swagger_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Swagger_ExtensionsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT ExternalDocumentation final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) */ { +class SecurityScheme_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + SecurityScheme_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline ExternalDocumentation() : ExternalDocumentation(nullptr) {} - ~ExternalDocumentation() override; - template - explicit PROTOBUF_CONSTEXPR ExternalDocumentation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + SecurityScheme_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + SecurityScheme_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const SecurityScheme_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - ExternalDocumentation(const ExternalDocumentation& from); - ExternalDocumentation(ExternalDocumentation&& from) noexcept - : ExternalDocumentation() { - *this = ::std::move(from); +class SecurityRequirement_SecurityRequirementEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + SecurityRequirement_SecurityRequirementEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + SecurityRequirement_SecurityRequirementEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + SecurityRequirement_SecurityRequirementEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* arena); + static const SecurityRequirement_SecurityRequirementEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - inline ExternalDocumentation& operator=(const ExternalDocumentation& from) { +class AGONES_EXPORT Scopes final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Scopes) */ { + public: + inline Scopes() : Scopes(nullptr) {} + ~Scopes() override; + template + explicit PROTOBUF_CONSTEXPR Scopes( + ::google::protobuf::internal::ConstantInitialized); + + inline Scopes(const Scopes& from) : Scopes(nullptr, from) {} + inline Scopes(Scopes&& from) noexcept + : Scopes(nullptr, std::move(from)) {} + inline Scopes& operator=(const Scopes& from) { CopyFrom(from); return *this; } - inline ExternalDocumentation& operator=(ExternalDocumentation&& from) noexcept { + inline Scopes& operator=(Scopes&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2689,185 +1921,313 @@ class AGONES_EXPORT ExternalDocumentation final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ExternalDocumentation& default_instance() { + static const Scopes& default_instance() { return *internal_default_instance(); } - static inline const ExternalDocumentation* internal_default_instance() { - return reinterpret_cast( - &_ExternalDocumentation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(ExternalDocumentation& a, ExternalDocumentation& b) { - a.Swap(&b); + static inline const Scopes* internal_default_instance() { + return reinterpret_cast( + &_Scopes_default_instance_); } - inline void Swap(ExternalDocumentation* other) { + static constexpr int kIndexInFileMessages = 29; + friend void swap(Scopes& a, Scopes& b) { a.Swap(&b); } + inline void Swap(Scopes* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ExternalDocumentation* other) { + void UnsafeArenaSwap(Scopes* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ExternalDocumentation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ExternalDocumentation& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ExternalDocumentation& from) { - ExternalDocumentation::MergeImpl(*this, from); + Scopes* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Scopes& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Scopes& from) { Scopes::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExternalDocumentation* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation"; + void InternalSwap(Scopes* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Scopes"; } + + protected: + explicit Scopes(::google::protobuf::Arena* arena); + Scopes(::google::protobuf::Arena* arena, const Scopes& from); + Scopes(::google::protobuf::Arena* arena, Scopes&& from) noexcept + : Scopes(arena) { + *this = ::std::move(from); } - protected: - explicit ExternalDocumentation(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDescriptionFieldNumber = 1, - kUrlFieldNumber = 2, + kScopeFieldNumber = 1, }; - // string description = 1; - void clear_description() ; - const std::string& description() const; - - - - - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); - + // map scope = 1; + int scope_size() const; private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); + int _internal_scope_size() const; public: - // string url = 2; - void clear_url() ; - const std::string& url() const; - - - - - template - void set_url(Arg_&& arg, Args_... args); - std::string* mutable_url(); - PROTOBUF_NODISCARD std::string* release_url(); - void set_allocated_url(std::string* ptr); + void clear_scope() ; + const ::google::protobuf::Map& scope() const; + ::google::protobuf::Map* mutable_scope(); private: - const std::string& _internal_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_url( - const std::string& value); - std::string* _internal_mutable_url(); + const ::google::protobuf::Map& _internal_scope() const; + ::google::protobuf::Map* _internal_mutable_scope(); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 1, + 62, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::MapField + scope_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT Schema final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Schema) */ { +class Response_HeadersEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Response_HeadersEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline Schema() : Schema(nullptr) {} - ~Schema() override; - template - explicit PROTOBUF_CONSTEXPR Schema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + Response_HeadersEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Response_HeadersEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Response_HeadersEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Response_HeadersEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - Schema(const Schema& from); - Schema(Schema&& from) noexcept - : Schema() { - *this = ::std::move(from); +class Response_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Response_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Response_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Response_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Response_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Response_ExtensionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - inline Schema& operator=(const Schema& from) { +class Operation_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Operation_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Operation_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Operation_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Operation_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Operation_ExtensionsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- + +class JSONSchema_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + JSONSchema_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + JSONSchema_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + JSONSchema_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const JSONSchema_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- + +class Info_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Info_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Info_ExtensionsEntry_DoNotUse, std::string, ::google::protobuf::Value, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Info_ExtensionsEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Info_ExtensionsEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Info_ExtensionsEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- + +class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) */ { + public: + inline SecurityScheme() : SecurityScheme(nullptr) {} + ~SecurityScheme() override; + template + explicit PROTOBUF_CONSTEXPR SecurityScheme( + ::google::protobuf::internal::ConstantInitialized); + + inline SecurityScheme(const SecurityScheme& from) : SecurityScheme(nullptr, from) {} + inline SecurityScheme(SecurityScheme&& from) noexcept + : SecurityScheme(nullptr, std::move(from)) {} + inline SecurityScheme& operator=(const SecurityScheme& from) { CopyFrom(from); return *this; } - inline Schema& operator=(Schema&& from) noexcept { + inline SecurityScheme& operator=(SecurityScheme&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -2876,230 +2236,362 @@ class AGONES_EXPORT Schema final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Schema& default_instance() { + static const SecurityScheme& default_instance() { return *internal_default_instance(); } - static inline const Schema* internal_default_instance() { - return reinterpret_cast( - &_Schema_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(Schema& a, Schema& b) { - a.Swap(&b); + static inline const SecurityScheme* internal_default_instance() { + return reinterpret_cast( + &_SecurityScheme_default_instance_); } - inline void Swap(Schema* other) { + static constexpr int kIndexInFileMessages = 24; + friend void swap(SecurityScheme& a, SecurityScheme& b) { a.Swap(&b); } + inline void Swap(SecurityScheme* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Schema* other) { + void UnsafeArenaSwap(SecurityScheme* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Schema& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Schema& from) { - Schema::MergeImpl(*this, from); + SecurityScheme* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SecurityScheme& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SecurityScheme& from) { SecurityScheme::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Schema* other); + void InternalSwap(SecurityScheme* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"; } + + protected: + explicit SecurityScheme(::google::protobuf::Arena* arena); + SecurityScheme(::google::protobuf::Arena* arena, const SecurityScheme& from); + SecurityScheme(::google::protobuf::Arena* arena, SecurityScheme&& from) noexcept + : SecurityScheme(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Schema"; + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + using Type = SecurityScheme_Type; + static constexpr Type TYPE_INVALID = SecurityScheme_Type_TYPE_INVALID; + static constexpr Type TYPE_BASIC = SecurityScheme_Type_TYPE_BASIC; + static constexpr Type TYPE_API_KEY = SecurityScheme_Type_TYPE_API_KEY; + static constexpr Type TYPE_OAUTH2 = SecurityScheme_Type_TYPE_OAUTH2; + static inline bool Type_IsValid(int value) { + return SecurityScheme_Type_IsValid(value); + } + static constexpr Type Type_MIN = SecurityScheme_Type_Type_MIN; + static constexpr Type Type_MAX = SecurityScheme_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = SecurityScheme_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { + return SecurityScheme_Type_descriptor(); + } + template + static inline const std::string& Type_Name(T value) { + return SecurityScheme_Type_Name(value); + } + static inline bool Type_Parse(absl::string_view name, Type* value) { + return SecurityScheme_Type_Parse(name, value); + } + using In = SecurityScheme_In; + static constexpr In IN_INVALID = SecurityScheme_In_IN_INVALID; + static constexpr In IN_QUERY = SecurityScheme_In_IN_QUERY; + static constexpr In IN_HEADER = SecurityScheme_In_IN_HEADER; + static inline bool In_IsValid(int value) { + return SecurityScheme_In_IsValid(value); + } + static constexpr In In_MIN = SecurityScheme_In_In_MIN; + static constexpr In In_MAX = SecurityScheme_In_In_MAX; + static constexpr int In_ARRAYSIZE = SecurityScheme_In_In_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* In_descriptor() { + return SecurityScheme_In_descriptor(); + } + template + static inline const std::string& In_Name(T value) { + return SecurityScheme_In_Name(value); + } + static inline bool In_Parse(absl::string_view name, In* value) { + return SecurityScheme_In_Parse(name, value); + } + using Flow = SecurityScheme_Flow; + static constexpr Flow FLOW_INVALID = SecurityScheme_Flow_FLOW_INVALID; + static constexpr Flow FLOW_IMPLICIT = SecurityScheme_Flow_FLOW_IMPLICIT; + static constexpr Flow FLOW_PASSWORD = SecurityScheme_Flow_FLOW_PASSWORD; + static constexpr Flow FLOW_APPLICATION = SecurityScheme_Flow_FLOW_APPLICATION; + static constexpr Flow FLOW_ACCESS_CODE = SecurityScheme_Flow_FLOW_ACCESS_CODE; + static inline bool Flow_IsValid(int value) { + return SecurityScheme_Flow_IsValid(value); + } + static constexpr Flow Flow_MIN = SecurityScheme_Flow_Flow_MIN; + static constexpr Flow Flow_MAX = SecurityScheme_Flow_Flow_MAX; + static constexpr int Flow_ARRAYSIZE = SecurityScheme_Flow_Flow_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Flow_descriptor() { + return SecurityScheme_Flow_descriptor(); + } + template + static inline const std::string& Flow_Name(T value) { + return SecurityScheme_Flow_Name(value); + } + static inline bool Flow_Parse(absl::string_view name, Flow* value) { + return SecurityScheme_Flow_Parse(name, value); } - protected: - explicit Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDiscriminatorFieldNumber = 2, - kExampleFieldNumber = 6, - kJsonSchemaFieldNumber = 1, - kExternalDocsFieldNumber = 5, - kReadOnlyFieldNumber = 3, + kExtensionsFieldNumber = 9, + kDescriptionFieldNumber = 2, + kNameFieldNumber = 3, + kAuthorizationUrlFieldNumber = 6, + kTokenUrlFieldNumber = 7, + kScopesFieldNumber = 8, + kTypeFieldNumber = 1, + kInFieldNumber = 4, + kFlowFieldNumber = 5, }; - // string discriminator = 2; - void clear_discriminator() ; - const std::string& discriminator() const; - + // map extensions = 9; + int extensions_size() const; + private: + int _internal_extensions_size() const; + public: + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); + public: + // string description = 2; + void clear_description() ; + const std::string& description() const; template - void set_discriminator(Arg_&& arg, Args_... args); - std::string* mutable_discriminator(); - PROTOBUF_NODISCARD std::string* release_discriminator(); - void set_allocated_discriminator(std::string* ptr); + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* value); private: - const std::string& _internal_discriminator() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_discriminator( + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( const std::string& value); - std::string* _internal_mutable_discriminator(); + std::string* _internal_mutable_description(); public: - // string example = 6; - void clear_example() ; - const std::string& example() const; + // string name = 3; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + public: + // string authorization_url = 6; + void clear_authorization_url() ; + const std::string& authorization_url() const; + template + void set_authorization_url(Arg_&& arg, Args_... args); + std::string* mutable_authorization_url(); + PROTOBUF_NODISCARD std::string* release_authorization_url(); + void set_allocated_authorization_url(std::string* value); + private: + const std::string& _internal_authorization_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_url( + const std::string& value); + std::string* _internal_mutable_authorization_url(); + public: + // string token_url = 7; + void clear_token_url() ; + const std::string& token_url() const; template - void set_example(Arg_&& arg, Args_... args); - std::string* mutable_example(); - PROTOBUF_NODISCARD std::string* release_example(); - void set_allocated_example(std::string* ptr); + void set_token_url(Arg_&& arg, Args_... args); + std::string* mutable_token_url(); + PROTOBUF_NODISCARD std::string* release_token_url(); + void set_allocated_token_url(std::string* value); private: - const std::string& _internal_example() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_example( + const std::string& _internal_token_url() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_url( const std::string& value); - std::string* _internal_mutable_example(); + std::string* _internal_mutable_token_url(); public: - // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - bool has_json_schema() const; - void clear_json_schema() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* release_json_schema(); - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* mutable_json_schema(); - void set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema); + // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + bool has_scopes() const; + void clear_scopes() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* release_scopes(); + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* mutable_scopes(); + void set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* value); + void unsafe_arena_set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* value); + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* unsafe_arena_release_scopes(); + private: - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& _internal_json_schema() const; - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* _internal_mutable_json_schema(); + const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& _internal_scopes() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* _internal_mutable_scopes(); + public: - void unsafe_arena_set_allocated_json_schema( - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema); - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* unsafe_arena_release_json_schema(); - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - bool has_external_docs() const; - void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); - void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; + void clear_type() ; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; + void set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); + private: - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type _internal_type() const; + void _internal_set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); + public: - void unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); - // bool read_only = 3; - void clear_read_only() ; - bool read_only() const; - void set_read_only(bool value); + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + void clear_in() ; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; + void set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); private: - bool _internal_read_only() const; - void _internal_set_read_only(bool value); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In _internal_in() const; + void _internal_set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + void clear_flow() ; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow flow() const; + void set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value); + + private: + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow _internal_flow() const; + void _internal_set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 9, 3, + 124, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr discriminator_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr example_; - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema_; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; - bool read_only_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr authorization_url_; + ::google::protobuf::internal::ArenaStringPtr token_url_; + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes_; + int type_; + int in_; + int flow_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT JSONSchema_FieldConfiguration final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) */ { +class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) */ { public: - inline JSONSchema_FieldConfiguration() : JSONSchema_FieldConfiguration(nullptr) {} - ~JSONSchema_FieldConfiguration() override; - template - explicit PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - JSONSchema_FieldConfiguration(const JSONSchema_FieldConfiguration& from); - JSONSchema_FieldConfiguration(JSONSchema_FieldConfiguration&& from) noexcept - : JSONSchema_FieldConfiguration() { - *this = ::std::move(from); - } + inline SecurityRequirement() : SecurityRequirement(nullptr) {} + ~SecurityRequirement() override; + template + explicit PROTOBUF_CONSTEXPR SecurityRequirement( + ::google::protobuf::internal::ConstantInitialized); - inline JSONSchema_FieldConfiguration& operator=(const JSONSchema_FieldConfiguration& from) { + inline SecurityRequirement(const SecurityRequirement& from) : SecurityRequirement(nullptr, from) {} + inline SecurityRequirement(SecurityRequirement&& from) noexcept + : SecurityRequirement(nullptr, std::move(from)) {} + inline SecurityRequirement& operator=(const SecurityRequirement& from) { CopyFrom(from); return *this; } - inline JSONSchema_FieldConfiguration& operator=(JSONSchema_FieldConfiguration&& from) noexcept { + inline SecurityRequirement& operator=(SecurityRequirement&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3108,189 +2600,174 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const JSONSchema_FieldConfiguration& default_instance() { + static const SecurityRequirement& default_instance() { return *internal_default_instance(); } - static inline const JSONSchema_FieldConfiguration* internal_default_instance() { - return reinterpret_cast( - &_JSONSchema_FieldConfiguration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(JSONSchema_FieldConfiguration& a, JSONSchema_FieldConfiguration& b) { - a.Swap(&b); + static inline const SecurityRequirement* internal_default_instance() { + return reinterpret_cast( + &_SecurityRequirement_default_instance_); } - inline void Swap(JSONSchema_FieldConfiguration* other) { + static constexpr int kIndexInFileMessages = 27; + friend void swap(SecurityRequirement& a, SecurityRequirement& b) { a.Swap(&b); } + inline void Swap(SecurityRequirement* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(JSONSchema_FieldConfiguration* other) { + void UnsafeArenaSwap(SecurityRequirement* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - JSONSchema_FieldConfiguration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const JSONSchema_FieldConfiguration& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const JSONSchema_FieldConfiguration& from) { - JSONSchema_FieldConfiguration::MergeImpl(*this, from); + SecurityRequirement* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SecurityRequirement& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SecurityRequirement& from) { SecurityRequirement::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(JSONSchema_FieldConfiguration* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration"; + void InternalSwap(SecurityRequirement* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement"; } + + protected: + explicit SecurityRequirement(::google::protobuf::Arena* arena); + SecurityRequirement(::google::protobuf::Arena* arena, const SecurityRequirement& from); + SecurityRequirement(::google::protobuf::Arena* arena, SecurityRequirement&& from) noexcept + : SecurityRequirement(arena) { + *this = ::std::move(from); } - protected: - explicit JSONSchema_FieldConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- + using SecurityRequirementValue = SecurityRequirement_SecurityRequirementValue; // accessors ------------------------------------------------------- - enum : int { - kPathParamNameFieldNumber = 47, + kSecurityRequirementFieldNumber = 1, }; - // string path_param_name = 47; - void clear_path_param_name() ; - const std::string& path_param_name() const; - - - + // map security_requirement = 1; + int security_requirement_size() const; + private: + int _internal_security_requirement_size() const; - template - void set_path_param_name(Arg_&& arg, Args_... args); - std::string* mutable_path_param_name(); - PROTOBUF_NODISCARD std::string* release_path_param_name(); - void set_allocated_path_param_name(std::string* ptr); + public: + void clear_security_requirement() ; + const ::google::protobuf::Map& security_requirement() const; + ::google::protobuf::Map* mutable_security_requirement(); private: - const std::string& _internal_path_param_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path_param_name( - const std::string& value); - std::string* _internal_mutable_path_param_name(); + const ::google::protobuf::Map& _internal_security_requirement() const; + ::google::protobuf::Map* _internal_mutable_security_requirement(); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 2, + 90, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_param_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::MapField + security_requirement_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class JSONSchema_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - JSONSchema_ExtensionsEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit JSONSchema_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const JSONSchema_ExtensionsEntry_DoNotUse& other); - static const JSONSchema_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT JSONSchema final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) */ { +class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) */ { public: inline JSONSchema() : JSONSchema(nullptr) {} ~JSONSchema() override; - template - explicit PROTOBUF_CONSTEXPR JSONSchema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - JSONSchema(const JSONSchema& from); - JSONSchema(JSONSchema&& from) noexcept - : JSONSchema() { - *this = ::std::move(from); - } + template + explicit PROTOBUF_CONSTEXPR JSONSchema( + ::google::protobuf::internal::ConstantInitialized); + inline JSONSchema(const JSONSchema& from) : JSONSchema(nullptr, from) {} + inline JSONSchema(JSONSchema&& from) noexcept + : JSONSchema(nullptr, std::move(from)) {} inline JSONSchema& operator=(const JSONSchema& from) { CopyFrom(from); return *this; } inline JSONSchema& operator=(JSONSchema&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3299,20 +2776,22 @@ class AGONES_EXPORT JSONSchema final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const JSONSchema& default_instance() { @@ -3320,80 +2799,76 @@ class AGONES_EXPORT JSONSchema final : } static inline const JSONSchema* internal_default_instance() { return reinterpret_cast( - &_JSONSchema_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(JSONSchema& a, JSONSchema& b) { - a.Swap(&b); + &_JSONSchema_default_instance_); } + static constexpr int kIndexInFileMessages = 19; + friend void swap(JSONSchema& a, JSONSchema& b) { a.Swap(&b); } inline void Swap(JSONSchema* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(JSONSchema* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - JSONSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + JSONSchema* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const JSONSchema& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const JSONSchema& from) { - JSONSchema::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const JSONSchema& from) { JSONSchema::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; void InternalSwap(JSONSchema* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema"; + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema"; } + + protected: + explicit JSONSchema(::google::protobuf::Arena* arena); + JSONSchema(::google::protobuf::Arena* arena, const JSONSchema& from); + JSONSchema(::google::protobuf::Arena* arena, JSONSchema&& from) noexcept + : JSONSchema(arena) { + *this = ::std::move(from); } - protected: - explicit JSONSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - typedef JSONSchema_FieldConfiguration FieldConfiguration; - + using FieldConfiguration = JSONSchema_FieldConfiguration; using JSONSchemaSimpleTypes = JSONSchema_JSONSchemaSimpleTypes; static constexpr JSONSchemaSimpleTypes UNKNOWN = JSONSchema_JSONSchemaSimpleTypes_UNKNOWN; static constexpr JSONSchemaSimpleTypes ARRAY = JSONSchema_JSONSchemaSimpleTypes_ARRAY; @@ -3409,7 +2884,7 @@ class AGONES_EXPORT JSONSchema final : static constexpr JSONSchemaSimpleTypes JSONSchemaSimpleTypes_MIN = JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MIN; static constexpr JSONSchemaSimpleTypes JSONSchemaSimpleTypes_MAX = JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MAX; static constexpr int JSONSchemaSimpleTypes_ARRAYSIZE = JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JSONSchemaSimpleTypes_descriptor() { + static inline const ::google::protobuf::EnumDescriptor* JSONSchemaSimpleTypes_descriptor() { return JSONSchema_JSONSchemaSimpleTypes_descriptor(); } template @@ -3421,7 +2896,6 @@ class AGONES_EXPORT JSONSchema final : } // accessors ------------------------------------------------------- - enum : int { kRequiredFieldNumber = 26, kArrayFieldNumber = 34, @@ -3470,14 +2944,12 @@ class AGONES_EXPORT JSONSchema final : void add_required(const char* value); void add_required(const char* value, std::size_t size); void add_required(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& required() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_required(); + const ::google::protobuf::RepeatedPtrField& required() const; + ::google::protobuf::RepeatedPtrField* mutable_required(); private: - const std::string& _internal_required(int index) const; - std::string* _internal_add_required(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_required() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_required(); + const ::google::protobuf::RepeatedPtrField& _internal_required() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_required(); public: // repeated string array = 34; @@ -3500,14 +2972,12 @@ class AGONES_EXPORT JSONSchema final : void add_array(const char* value); void add_array(const char* value, std::size_t size); void add_array(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_array(); + const ::google::protobuf::RepeatedPtrField& array() const; + ::google::protobuf::RepeatedPtrField* mutable_array(); private: - const std::string& _internal_array(int index) const; - std::string* _internal_add_array(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_array(); + const ::google::protobuf::RepeatedPtrField& _internal_array() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_array(); public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; @@ -3521,14 +2991,12 @@ class AGONES_EXPORT JSONSchema final : ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes type(int index) const; void set_type(int index, ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value); void add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& type() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_type(); + const ::google::protobuf::RepeatedField& type() const; + ::google::protobuf::RepeatedField* mutable_type(); private: - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes _internal_type(int index) const; - void _internal_add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& _internal_type() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_type(); + const ::google::protobuf::RepeatedField& _internal_type() const; + ::google::protobuf::RepeatedField* _internal_mutable_type(); public: // repeated string enum = 46; @@ -3551,14 +3019,12 @@ class AGONES_EXPORT JSONSchema final : void add_enum_(const char* value); void add_enum_(const char* value, std::size_t size); void add_enum_(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& enum_() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_enum_(); + const ::google::protobuf::RepeatedPtrField& enum_() const; + ::google::protobuf::RepeatedPtrField* mutable_enum_(); private: - const std::string& _internal_enum_(int index) const; - std::string* _internal_add_enum_(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_enum_() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_enum_(); + const ::google::protobuf::RepeatedPtrField& _internal_enum_() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_enum_(); public: // map extensions = 48; @@ -3568,28 +3034,22 @@ class AGONES_EXPORT JSONSchema final : public: void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); // string ref = 3; void clear_ref() ; const std::string& ref() const; - - - - template void set_ref(Arg_&& arg, Args_... args); std::string* mutable_ref(); PROTOBUF_NODISCARD std::string* release_ref(); - void set_allocated_ref(std::string* ptr); + void set_allocated_ref(std::string* value); private: const std::string& _internal_ref() const; @@ -3601,15 +3061,11 @@ class AGONES_EXPORT JSONSchema final : // string title = 5; void clear_title() ; const std::string& title() const; - - - - template void set_title(Arg_&& arg, Args_... args); std::string* mutable_title(); PROTOBUF_NODISCARD std::string* release_title(); - void set_allocated_title(std::string* ptr); + void set_allocated_title(std::string* value); private: const std::string& _internal_title() const; @@ -3621,15 +3077,11 @@ class AGONES_EXPORT JSONSchema final : // string description = 6; void clear_description() ; const std::string& description() const; - - - - template void set_description(Arg_&& arg, Args_... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); + void set_allocated_description(std::string* value); private: const std::string& _internal_description() const; @@ -3641,15 +3093,11 @@ class AGONES_EXPORT JSONSchema final : // string default = 7; void clear_default_() ; const std::string& default_() const; - - - - template void set_default_(Arg_&& arg, Args_... args); std::string* mutable_default_(); PROTOBUF_NODISCARD std::string* release_default_(); - void set_allocated_default_(std::string* ptr); + void set_allocated_default_(std::string* value); private: const std::string& _internal_default_() const; @@ -3661,15 +3109,11 @@ class AGONES_EXPORT JSONSchema final : // string example = 9; void clear_example() ; const std::string& example() const; - - - - template void set_example(Arg_&& arg, Args_... args); std::string* mutable_example(); PROTOBUF_NODISCARD std::string* release_example(); - void set_allocated_example(std::string* ptr); + void set_allocated_example(std::string* value); private: const std::string& _internal_example() const; @@ -3681,15 +3125,11 @@ class AGONES_EXPORT JSONSchema final : // string pattern = 17; void clear_pattern() ; const std::string& pattern() const; - - - - template void set_pattern(Arg_&& arg, Args_... args); std::string* mutable_pattern(); PROTOBUF_NODISCARD std::string* release_pattern(); - void set_allocated_pattern(std::string* ptr); + void set_allocated_pattern(std::string* value); private: const std::string& _internal_pattern() const; @@ -3701,15 +3141,11 @@ class AGONES_EXPORT JSONSchema final : // string format = 36; void clear_format() ; const std::string& format() const; - - - - template void set_format(Arg_&& arg, Args_... args); std::string* mutable_format(); PROTOBUF_NODISCARD std::string* release_format(); - void set_allocated_format(std::string* ptr); + void set_allocated_format(std::string* value); private: const std::string& _internal_format() const; @@ -3724,14 +3160,15 @@ class AGONES_EXPORT JSONSchema final : const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration() const; PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* release_field_configuration(); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* mutable_field_configuration(); - void set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* field_configuration); + void set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* value); + void unsafe_arena_set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* value); + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* unsafe_arena_release_field_configuration(); + private: const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& _internal_field_configuration() const; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* _internal_mutable_field_configuration(); + public: - void unsafe_arena_set_allocated_field_configuration( - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* field_configuration); - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* unsafe_arena_release_field_configuration(); // double multiple_of = 10; void clear_multiple_of() ; double multiple_of() const; @@ -3865,30 +3302,42 @@ class AGONES_EXPORT JSONSchema final : // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 5, 26, 3, + 158, 12> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField required_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField array_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _type_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField enum__; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - JSONSchema_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ref_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default__; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr example_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pattern_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr format_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField required_; + ::google::protobuf::RepeatedPtrField array_; + ::google::protobuf::RepeatedField type_; + mutable ::google::protobuf::internal::CachedSize _type_cached_byte_size_; + ::google::protobuf::RepeatedPtrField enum__; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr ref_; + ::google::protobuf::internal::ArenaStringPtr title_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr default__; + ::google::protobuf::internal::ArenaStringPtr example_; + ::google::protobuf::internal::ArenaStringPtr pattern_; + ::google::protobuf::internal::ArenaStringPtr format_; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* field_configuration_; double multiple_of_; double maximum_; @@ -3903,35 +3352,35 @@ class AGONES_EXPORT JSONSchema final : bool exclusive_maximum_; bool exclusive_minimum_; bool unique_items_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT Tag final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Tag) */ { +class AGONES_EXPORT Info final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Info) */ { public: - inline Tag() : Tag(nullptr) {} - ~Tag() override; - template - explicit PROTOBUF_CONSTEXPR Tag(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Tag(const Tag& from); - Tag(Tag&& from) noexcept - : Tag() { - *this = ::std::move(from); - } + inline Info() : Info(nullptr) {} + ~Info() override; + template + explicit PROTOBUF_CONSTEXPR Info( + ::google::protobuf::internal::ConstantInitialized); - inline Tag& operator=(const Tag& from) { + inline Info(const Info& from) : Info(nullptr, from) {} + inline Info(Info&& from) noexcept + : Info(nullptr, std::move(from)) {} + inline Info& operator=(const Info& from) { CopyFrom(from); return *this; } - inline Tag& operator=(Tag&& from) noexcept { + inline Info& operator=(Info&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -3940,117 +3389,148 @@ class AGONES_EXPORT Tag final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Tag& default_instance() { + static const Info& default_instance() { return *internal_default_instance(); } - static inline const Tag* internal_default_instance() { - return reinterpret_cast( - &_Tag_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(Tag& a, Tag& b) { - a.Swap(&b); + static inline const Info* internal_default_instance() { + return reinterpret_cast( + &_Info_default_instance_); } - inline void Swap(Tag* other) { + static constexpr int kIndexInFileMessages = 12; + friend void swap(Info& a, Info& b) { a.Swap(&b); } + inline void Swap(Info* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Tag* other) { + void UnsafeArenaSwap(Info* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Tag* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Tag& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Tag& from) { - Tag::MergeImpl(*this, from); + Info* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Info& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Info& from) { Info::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Tag* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Tag"; + void InternalSwap(Info* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Info"; } + + protected: + explicit Info(::google::protobuf::Arena* arena); + Info(::google::protobuf::Arena* arena, const Info& from); + Info(::google::protobuf::Arena* arena, Info&& from) noexcept + : Info(arena) { + *this = ::std::move(from); } - protected: - explicit Tag(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { + kExtensionsFieldNumber = 7, + kTitleFieldNumber = 1, kDescriptionFieldNumber = 2, - kExternalDocsFieldNumber = 3, + kTermsOfServiceFieldNumber = 3, + kVersionFieldNumber = 6, + kContactFieldNumber = 4, + kLicenseFieldNumber = 5, }; - // string description = 2; - void clear_description() ; - const std::string& description() const; + // map extensions = 7; + int extensions_size() const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); + public: + // string title = 1; + void clear_title() ; + const std::string& title() const; + template + void set_title(Arg_&& arg, Args_... args); + std::string* mutable_title(); + PROTOBUF_NODISCARD std::string* release_title(); + void set_allocated_title(std::string* value); + private: + const std::string& _internal_title() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title( + const std::string& value); + std::string* _internal_mutable_title(); + public: + // string description = 2; + void clear_description() ; + const std::string& description() const; template void set_description(Arg_&& arg, Args_... args); std::string* mutable_description(); PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); + void set_allocated_description(std::string* value); private: const std::string& _internal_description() const; @@ -4059,280 +3539,158 @@ class AGONES_EXPORT Tag final : std::string* _internal_mutable_description(); public: - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - bool has_external_docs() const; - void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); - void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); - public: - void unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs); - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class SecurityDefinitions_SecurityEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - SecurityDefinitions_SecurityEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit SecurityDefinitions_SecurityEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const SecurityDefinitions_SecurityEntry_DoNotUse& other); - static const SecurityDefinitions_SecurityEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -}; -// ------------------------------------------------------------------- - -class AGONES_EXPORT SecurityDefinitions final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) */ { - public: - inline SecurityDefinitions() : SecurityDefinitions(nullptr) {} - ~SecurityDefinitions() override; - template - explicit PROTOBUF_CONSTEXPR SecurityDefinitions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SecurityDefinitions(const SecurityDefinitions& from); - SecurityDefinitions(SecurityDefinitions&& from) noexcept - : SecurityDefinitions() { - *this = ::std::move(from); - } - - inline SecurityDefinitions& operator=(const SecurityDefinitions& from) { - CopyFrom(from); - return *this; - } - inline SecurityDefinitions& operator=(SecurityDefinitions&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SecurityDefinitions& default_instance() { - return *internal_default_instance(); - } - static inline const SecurityDefinitions* internal_default_instance() { - return reinterpret_cast( - &_SecurityDefinitions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(SecurityDefinitions& a, SecurityDefinitions& b) { - a.Swap(&b); - } - inline void Swap(SecurityDefinitions* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SecurityDefinitions* other) { - if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- + // string terms_of_service = 3; + void clear_terms_of_service() ; + const std::string& terms_of_service() const; + template + void set_terms_of_service(Arg_&& arg, Args_... args); + std::string* mutable_terms_of_service(); + PROTOBUF_NODISCARD std::string* release_terms_of_service(); + void set_allocated_terms_of_service(std::string* value); - SecurityDefinitions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SecurityDefinitions& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SecurityDefinitions& from) { - SecurityDefinitions::MergeImpl(*this, from); - } private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + const std::string& _internal_terms_of_service() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_terms_of_service( + const std::string& value); + std::string* _internal_mutable_terms_of_service(); - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + // string version = 6; + void clear_version() ; + const std::string& version() const; + template + void set_version(Arg_&& arg, Args_... args); + std::string* mutable_version(); + PROTOBUF_NODISCARD std::string* release_version(); + void set_allocated_version(std::string* value); private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SecurityDefinitions* other); + const std::string& _internal_version() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( + const std::string& value); + std::string* _internal_mutable_version(); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions"; - } - protected: - explicit SecurityDefinitions(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - enum : int { - kSecurityFieldNumber = 1, - }; - // map security = 1; - int security_size() const; + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + bool has_contact() const; + void clear_contact() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Contact* release_contact(); + ::grpc::gateway::protoc_gen_openapiv2::options::Contact* mutable_contact(); + void set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* value); + void unsafe_arena_set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* value); + ::grpc::gateway::protoc_gen_openapiv2::options::Contact* unsafe_arena_release_contact(); + private: - int _internal_security_size() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& _internal_contact() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Contact* _internal_mutable_contact(); public: - void clear_security() ; + // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + bool has_license() const; + void clear_license() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::License* release_license(); + ::grpc::gateway::protoc_gen_openapiv2::options::License* mutable_license(); + void set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* value); + void unsafe_arena_set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* value); + ::grpc::gateway::protoc_gen_openapiv2::options::License* unsafe_arena_release_license(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >& - _internal_security() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >* - _internal_mutable_security(); + const ::grpc::gateway::protoc_gen_openapiv2::options::License& _internal_license() const; + ::grpc::gateway::protoc_gen_openapiv2::options::License* _internal_mutable_license(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >& - security() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >* - mutable_security(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 7, 4, + 104, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - SecurityDefinitions_SecurityEntry_DoNotUse, - std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> security_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr title_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr terms_of_service_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact_; + ::grpc::gateway::protoc_gen_openapiv2::options::License* license_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class SecurityScheme_ExtensionsEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - SecurityScheme_ExtensionsEntry_DoNotUse(); +}; +// ------------------------------------------------------------------- + +class SecurityDefinitions_SecurityEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + SecurityDefinitions_SecurityEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + SecurityDefinitions_SecurityEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + SecurityDefinitions_SecurityEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit SecurityScheme_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const SecurityScheme_ExtensionsEntry_DoNotUse& other); - static const SecurityScheme_ExtensionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_); } + explicit PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* arena); + static const SecurityDefinitions_SecurityEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_); + } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry.key"); + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry.key"); } static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityScheme final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) */ { +class AGONES_EXPORT Schema final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Schema) */ { public: - inline SecurityScheme() : SecurityScheme(nullptr) {} - ~SecurityScheme() override; - template - explicit PROTOBUF_CONSTEXPR SecurityScheme(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SecurityScheme(const SecurityScheme& from); - SecurityScheme(SecurityScheme&& from) noexcept - : SecurityScheme() { - *this = ::std::move(from); - } + inline Schema() : Schema(nullptr) {} + ~Schema() override; + template + explicit PROTOBUF_CONSTEXPR Schema( + ::google::protobuf::internal::ConstantInitialized); - inline SecurityScheme& operator=(const SecurityScheme& from) { + inline Schema(const Schema& from) : Schema(nullptr, from) {} + inline Schema(Schema&& from) noexcept + : Schema(nullptr, std::move(from)) {} + inline Schema& operator=(const Schema& from) { CopyFrom(from); return *this; } - inline SecurityScheme& operator=(SecurityScheme&& from) noexcept { + inline Schema& operator=(Schema&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4341,372 +3699,411 @@ class AGONES_EXPORT SecurityScheme final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityScheme& default_instance() { + static const Schema& default_instance() { return *internal_default_instance(); } - static inline const SecurityScheme* internal_default_instance() { - return reinterpret_cast( - &_SecurityScheme_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(SecurityScheme& a, SecurityScheme& b) { - a.Swap(&b); + static inline const Schema* internal_default_instance() { + return reinterpret_cast( + &_Schema_default_instance_); } - inline void Swap(SecurityScheme* other) { + static constexpr int kIndexInFileMessages = 16; + friend void swap(Schema& a, Schema& b) { a.Swap(&b); } + inline void Swap(Schema* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SecurityScheme* other) { + void UnsafeArenaSwap(Schema* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SecurityScheme* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SecurityScheme& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SecurityScheme& from) { - SecurityScheme::MergeImpl(*this, from); + Schema* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Schema& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Schema& from) { Schema::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SecurityScheme* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"; + void InternalSwap(Schema* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Schema"; } + + protected: + explicit Schema(::google::protobuf::Arena* arena); + Schema(::google::protobuf::Arena* arena, const Schema& from); + Schema(::google::protobuf::Arena* arena, Schema&& from) noexcept + : Schema(arena) { + *this = ::std::move(from); } - protected: - explicit SecurityScheme(::PROTOBUF_NAMESPACE_ID::Arena* arena); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- - - using Type = SecurityScheme_Type; - static constexpr Type TYPE_INVALID = SecurityScheme_Type_TYPE_INVALID; - static constexpr Type TYPE_BASIC = SecurityScheme_Type_TYPE_BASIC; - static constexpr Type TYPE_API_KEY = SecurityScheme_Type_TYPE_API_KEY; - static constexpr Type TYPE_OAUTH2 = SecurityScheme_Type_TYPE_OAUTH2; - static inline bool Type_IsValid(int value) { - return SecurityScheme_Type_IsValid(value); - } - static constexpr Type Type_MIN = SecurityScheme_Type_Type_MIN; - static constexpr Type Type_MAX = SecurityScheme_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = SecurityScheme_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Type_descriptor() { - return SecurityScheme_Type_descriptor(); - } - template - static inline const std::string& Type_Name(T value) { - return SecurityScheme_Type_Name(value); - } - static inline bool Type_Parse(absl::string_view name, Type* value) { - return SecurityScheme_Type_Parse(name, value); - } - - using In = SecurityScheme_In; - static constexpr In IN_INVALID = SecurityScheme_In_IN_INVALID; - static constexpr In IN_QUERY = SecurityScheme_In_IN_QUERY; - static constexpr In IN_HEADER = SecurityScheme_In_IN_HEADER; - static inline bool In_IsValid(int value) { - return SecurityScheme_In_IsValid(value); - } - static constexpr In In_MIN = SecurityScheme_In_In_MIN; - static constexpr In In_MAX = SecurityScheme_In_In_MAX; - static constexpr int In_ARRAYSIZE = SecurityScheme_In_In_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* In_descriptor() { - return SecurityScheme_In_descriptor(); - } - template - static inline const std::string& In_Name(T value) { - return SecurityScheme_In_Name(value); - } - static inline bool In_Parse(absl::string_view name, In* value) { - return SecurityScheme_In_Parse(name, value); - } - - using Flow = SecurityScheme_Flow; - static constexpr Flow FLOW_INVALID = SecurityScheme_Flow_FLOW_INVALID; - static constexpr Flow FLOW_IMPLICIT = SecurityScheme_Flow_FLOW_IMPLICIT; - static constexpr Flow FLOW_PASSWORD = SecurityScheme_Flow_FLOW_PASSWORD; - static constexpr Flow FLOW_APPLICATION = SecurityScheme_Flow_FLOW_APPLICATION; - static constexpr Flow FLOW_ACCESS_CODE = SecurityScheme_Flow_FLOW_ACCESS_CODE; - static inline bool Flow_IsValid(int value) { - return SecurityScheme_Flow_IsValid(value); - } - static constexpr Flow Flow_MIN = SecurityScheme_Flow_Flow_MIN; - static constexpr Flow Flow_MAX = SecurityScheme_Flow_Flow_MAX; - static constexpr int Flow_ARRAYSIZE = SecurityScheme_Flow_Flow_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Flow_descriptor() { - return SecurityScheme_Flow_descriptor(); - } - template - static inline const std::string& Flow_Name(T value) { - return SecurityScheme_Flow_Name(value); - } - static inline bool Flow_Parse(absl::string_view name, Flow* value) { - return SecurityScheme_Flow_Parse(name, value); - } - // accessors ------------------------------------------------------- - enum : int { - kExtensionsFieldNumber = 9, - kDescriptionFieldNumber = 2, - kNameFieldNumber = 3, - kAuthorizationUrlFieldNumber = 6, - kTokenUrlFieldNumber = 7, - kScopesFieldNumber = 8, - kTypeFieldNumber = 1, - kInFieldNumber = 4, - kFlowFieldNumber = 5, + kDiscriminatorFieldNumber = 2, + kExampleFieldNumber = 6, + kJsonSchemaFieldNumber = 1, + kExternalDocsFieldNumber = 5, + kReadOnlyFieldNumber = 3, }; - // map extensions = 9; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - _internal_extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - _internal_mutable_extensions(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& - extensions() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* - mutable_extensions(); - // string description = 2; - void clear_description() ; - const std::string& description() const; - - - - + // string discriminator = 2; + void clear_discriminator() ; + const std::string& discriminator() const; template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* ptr); + void set_discriminator(Arg_&& arg, Args_... args); + std::string* mutable_discriminator(); + PROTOBUF_NODISCARD std::string* release_discriminator(); + void set_allocated_discriminator(std::string* value); private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& _internal_discriminator() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_discriminator( const std::string& value); - std::string* _internal_mutable_description(); + std::string* _internal_mutable_discriminator(); public: - // string name = 3; - void clear_name() ; - const std::string& name() const; - - - - + // string example = 6; + void clear_example() ; + const std::string& example() const; template - void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* ptr); + void set_example(Arg_&& arg, Args_... args); + std::string* mutable_example(); + PROTOBUF_NODISCARD std::string* release_example(); + void set_allocated_example(std::string* value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& _internal_example() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_example( const std::string& value); - std::string* _internal_mutable_name(); + std::string* _internal_mutable_example(); public: - // string authorization_url = 6; - void clear_authorization_url() ; - const std::string& authorization_url() const; + // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; + bool has_json_schema() const; + void clear_json_schema() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* release_json_schema(); + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* mutable_json_schema(); + void set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* value); + void unsafe_arena_set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* value); + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* unsafe_arena_release_json_schema(); + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& _internal_json_schema() const; + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* _internal_mutable_json_schema(); + public: + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + bool has_external_docs() const; + void clear_external_docs() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); + void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + void unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); - template - void set_authorization_url(Arg_&& arg, Args_... args); - std::string* mutable_authorization_url(); - PROTOBUF_NODISCARD std::string* release_authorization_url(); - void set_allocated_authorization_url(std::string* ptr); + public: + // bool read_only = 3; + void clear_read_only() ; + bool read_only() const; + void set_read_only(bool value); private: - const std::string& _internal_authorization_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_authorization_url( - const std::string& value); - std::string* _internal_mutable_authorization_url(); + bool _internal_read_only() const; + void _internal_set_read_only(bool value); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 5, 2, + 77, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr discriminator_; + ::google::protobuf::internal::ArenaStringPtr example_; + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; + bool read_only_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - public: - // string token_url = 7; - void clear_token_url() ; - const std::string& token_url() const; +class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) */ { + public: + inline SecurityDefinitions() : SecurityDefinitions(nullptr) {} + ~SecurityDefinitions() override; + template + explicit PROTOBUF_CONSTEXPR SecurityDefinitions( + ::google::protobuf::internal::ConstantInitialized); + inline SecurityDefinitions(const SecurityDefinitions& from) : SecurityDefinitions(nullptr, from) {} + inline SecurityDefinitions(SecurityDefinitions&& from) noexcept + : SecurityDefinitions(nullptr, std::move(from)) {} + inline SecurityDefinitions& operator=(const SecurityDefinitions& from) { + CopyFrom(from); + return *this; + } + inline SecurityDefinitions& operator=(SecurityDefinitions&& from) noexcept { + if (this == &from) return *this; + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SecurityDefinitions& default_instance() { + return *internal_default_instance(); + } + static inline const SecurityDefinitions* internal_default_instance() { + return reinterpret_cast( + &_SecurityDefinitions_default_instance_); + } + static constexpr int kIndexInFileMessages = 22; + friend void swap(SecurityDefinitions& a, SecurityDefinitions& b) { a.Swap(&b); } + inline void Swap(SecurityDefinitions* other) { + if (other == this) return; +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SecurityDefinitions* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } - template - void set_token_url(Arg_&& arg, Args_... args); - std::string* mutable_token_url(); - PROTOBUF_NODISCARD std::string* release_token_url(); - void set_allocated_token_url(std::string* ptr); + // implements Message ---------------------------------------------- - private: - const std::string& _internal_token_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_token_url( - const std::string& value); - std::string* _internal_mutable_token_url(); + SecurityDefinitions* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const SecurityDefinitions& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SecurityDefinitions& from) { SecurityDefinitions::MergeImpl(*this, from); } - public: - // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - bool has_scopes() const; - void clear_scopes() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; - PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* release_scopes(); - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* mutable_scopes(); - void set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes); private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& _internal_scopes() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* _internal_mutable_scopes(); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - void unsafe_arena_set_allocated_scopes( - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes); - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* unsafe_arena_release_scopes(); - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - void clear_type() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; - void set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + ::size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type _internal_type() const; - void _internal_set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); + void SharedCtor(::google::protobuf::Arena* arena); + void SharedDtor(); + void InternalSwap(SecurityDefinitions* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions"; } + + protected: + explicit SecurityDefinitions(::google::protobuf::Arena* arena); + SecurityDefinitions(::google::protobuf::Arena* arena, const SecurityDefinitions& from); + SecurityDefinitions(::google::protobuf::Arena* arena, SecurityDefinitions&& from) noexcept + : SecurityDefinitions(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; - public: - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - void clear_in() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; - void set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + enum : int { + kSecurityFieldNumber = 1, + }; + // map security = 1; + int security_size() const; private: - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In _internal_in() const; - void _internal_set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); + int _internal_security_size() const; public: - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - void clear_flow() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow flow() const; - void set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value); + void clear_security() ; + const ::google::protobuf::Map& security() const; + ::google::protobuf::Map* mutable_security(); private: - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow _internal_flow() const; - void _internal_set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value); + const ::google::protobuf::Map& _internal_security() const; + ::google::protobuf::Map* _internal_mutable_security(); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 2, + 78, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - SecurityScheme_ExtensionsEntry_DoNotUse, - std::string, ::PROTOBUF_NAMESPACE_ID::Value, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> extensions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr authorization_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_url_; - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes_; - int type_; - int in_; - int flow_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::MapField + security_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- +}; +// ------------------------------------------------------------------- -class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) */ { +class AGONES_EXPORT Response final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Response) */ { public: - inline SecurityRequirement_SecurityRequirementValue() : SecurityRequirement_SecurityRequirementValue(nullptr) {} - ~SecurityRequirement_SecurityRequirementValue() override; - template - explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SecurityRequirement_SecurityRequirementValue(const SecurityRequirement_SecurityRequirementValue& from); - SecurityRequirement_SecurityRequirementValue(SecurityRequirement_SecurityRequirementValue&& from) noexcept - : SecurityRequirement_SecurityRequirementValue() { - *this = ::std::move(from); - } + inline Response() : Response(nullptr) {} + ~Response() override; + template + explicit PROTOBUF_CONSTEXPR Response( + ::google::protobuf::internal::ConstantInitialized); - inline SecurityRequirement_SecurityRequirementValue& operator=(const SecurityRequirement_SecurityRequirementValue& from) { + inline Response(const Response& from) : Response(nullptr, from) {} + inline Response(Response&& from) noexcept + : Response(nullptr, std::move(from)) {} + inline Response& operator=(const Response& from) { CopyFrom(from); return *this; } - inline SecurityRequirement_SecurityRequirementValue& operator=(SecurityRequirement_SecurityRequirementValue&& from) noexcept { + inline Response& operator=(Response&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4715,199 +4112,305 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityRequirement_SecurityRequirementValue& default_instance() { + static const Response& default_instance() { return *internal_default_instance(); } - static inline const SecurityRequirement_SecurityRequirementValue* internal_default_instance() { - return reinterpret_cast( - &_SecurityRequirement_SecurityRequirementValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(SecurityRequirement_SecurityRequirementValue& a, SecurityRequirement_SecurityRequirementValue& b) { - a.Swap(&b); + static inline const Response* internal_default_instance() { + return reinterpret_cast( + &_Response_default_instance_); } - inline void Swap(SecurityRequirement_SecurityRequirementValue* other) { + static constexpr int kIndexInFileMessages = 10; + friend void swap(Response& a, Response& b) { a.Swap(&b); } + inline void Swap(Response* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SecurityRequirement_SecurityRequirementValue* other) { + void UnsafeArenaSwap(Response* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SecurityRequirement_SecurityRequirementValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SecurityRequirement_SecurityRequirementValue& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SecurityRequirement_SecurityRequirementValue& from) { - SecurityRequirement_SecurityRequirementValue::MergeImpl(*this, from); + Response* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Response& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Response& from) { Response::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SecurityRequirement_SecurityRequirementValue* other); + void InternalSwap(Response* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Response"; } + + protected: + explicit Response(::google::protobuf::Arena* arena); + Response(::google::protobuf::Arena* arena, const Response& from); + Response(::google::protobuf::Arena* arena, Response&& from) noexcept + : Response(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- + enum : int { + kHeadersFieldNumber = 3, + kExamplesFieldNumber = 4, + kExtensionsFieldNumber = 5, + kDescriptionFieldNumber = 1, + kSchemaFieldNumber = 2, + }; + // map headers = 3; + int headers_size() const; private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"; - } - protected: - explicit SecurityRequirement_SecurityRequirementValue(::PROTOBUF_NAMESPACE_ID::Arena* arena); + int _internal_headers_size() const; + public: + void clear_headers() ; + const ::google::protobuf::Map& headers() const; + ::google::protobuf::Map* mutable_headers(); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + const ::google::protobuf::Map& _internal_headers() const; + ::google::protobuf::Map* _internal_mutable_headers(); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + // map examples = 4; + int examples_size() const; + private: + int _internal_examples_size() const; - // nested types ---------------------------------------------------- + public: + void clear_examples() ; + const ::google::protobuf::Map& examples() const; + ::google::protobuf::Map* mutable_examples(); - // accessors ------------------------------------------------------- + private: + const ::google::protobuf::Map& _internal_examples() const; + ::google::protobuf::Map* _internal_mutable_examples(); - enum : int { - kScopeFieldNumber = 1, - }; - // repeated string scope = 1; - int scope_size() const; + public: + // map extensions = 5; + int extensions_size() const; private: - int _internal_scope_size() const; + int _internal_extensions_size() const; public: - void clear_scope() ; - const std::string& scope(int index) const; - std::string* mutable_scope(int index); - void set_scope(int index, const std::string& value); - void set_scope(int index, std::string&& value); - void set_scope(int index, const char* value); - void set_scope(int index, const char* value, std::size_t size); - void set_scope(int index, absl::string_view value); - std::string* add_scope(); - void add_scope(const std::string& value); - void add_scope(std::string&& value); - void add_scope(const char* value); - void add_scope(const char* value, std::size_t size); - void add_scope(absl::string_view value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& scope() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_scope(); + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); private: - const std::string& _internal_scope(int index) const; - std::string* _internal_add_scope(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& _internal_scope() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* _internal_mutable_scope(); + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); public: - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) + // string description = 1; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* value); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + bool has_schema() const; + void clear_schema() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& schema() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Schema* release_schema(); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* mutable_schema(); + void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* value); + void unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* value); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* unsafe_arena_release_schema(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* _internal_mutable_schema(); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 5, 6, + 95, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField scope_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + headers_; + ::google::protobuf::internal::MapField + examples_; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class SecurityRequirement_SecurityRequirementEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - SecurityRequirement_SecurityRequirementEntry_DoNotUse(); +}; +// ------------------------------------------------------------------- + +class Swagger_ResponsesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Swagger_ResponsesEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + Swagger_ResponsesEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Swagger_ResponsesEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit SecurityRequirement_SecurityRequirementEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const SecurityRequirement_SecurityRequirementEntry_DoNotUse& other); - static const SecurityRequirement_SecurityRequirementEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_); } + explicit PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Swagger_ResponsesEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Swagger_ResponsesEntry_DoNotUse_default_instance_); + } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry.key"); + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry.key"); } static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::Metadata GetMetadata() const final; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityRequirement final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) */ { +class Operation_ResponsesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + Operation_ResponsesEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline SecurityRequirement() : SecurityRequirement(nullptr) {} - ~SecurityRequirement() override; - template - explicit PROTOBUF_CONSTEXPR SecurityRequirement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + Operation_ResponsesEntry_DoNotUse, std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Operation_ResponsesEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Operation_ResponsesEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Operation_ResponsesEntry_DoNotUse_default_instance_); + } + static bool ValidateKey(std::string* s) { + return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry.key"); + } + static bool ValidateValue(void*) { return true; } + ::google::protobuf::Metadata GetMetadata() const final; + friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; +}; +// ------------------------------------------------------------------- - SecurityRequirement(const SecurityRequirement& from); - SecurityRequirement(SecurityRequirement&& from) noexcept - : SecurityRequirement() { - *this = ::std::move(from); - } +class AGONES_EXPORT Swagger final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Swagger) */ { + public: + inline Swagger() : Swagger(nullptr) {} + ~Swagger() override; + template + explicit PROTOBUF_CONSTEXPR Swagger( + ::google::protobuf::internal::ConstantInitialized); - inline SecurityRequirement& operator=(const SecurityRequirement& from) { + inline Swagger(const Swagger& from) : Swagger(nullptr, from) {} + inline Swagger(Swagger&& from) noexcept + : Swagger(nullptr, std::move(from)) {} + inline Swagger& operator=(const Swagger& from) { CopyFrom(from); return *this; } - inline SecurityRequirement& operator=(SecurityRequirement&& from) noexcept { + inline Swagger& operator=(Swagger&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -4916,194 +4419,400 @@ class AGONES_EXPORT SecurityRequirement final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityRequirement& default_instance() { + static const Swagger& default_instance() { return *internal_default_instance(); } - static inline const SecurityRequirement* internal_default_instance() { - return reinterpret_cast( - &_SecurityRequirement_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(SecurityRequirement& a, SecurityRequirement& b) { - a.Swap(&b); + static inline const Swagger* internal_default_instance() { + return reinterpret_cast( + &_Swagger_default_instance_); } - inline void Swap(SecurityRequirement* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(Swagger& a, Swagger& b) { a.Swap(&b); } + inline void Swap(Swagger* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(SecurityRequirement* other) { + void UnsafeArenaSwap(Swagger* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SecurityRequirement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SecurityRequirement& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SecurityRequirement& from) { - SecurityRequirement::MergeImpl(*this, from); + Swagger* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Swagger& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Swagger& from) { Swagger::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SecurityRequirement* other); + void InternalSwap(Swagger* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Swagger"; } + + protected: + explicit Swagger(::google::protobuf::Arena* arena); + Swagger(::google::protobuf::Arena* arena, const Swagger& from); + Swagger(::google::protobuf::Arena* arena, Swagger&& from) noexcept + : Swagger(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSchemesFieldNumber = 5, + kConsumesFieldNumber = 6, + kProducesFieldNumber = 7, + kResponsesFieldNumber = 10, + kSecurityFieldNumber = 12, + kExtensionsFieldNumber = 15, + kSwaggerFieldNumber = 1, + kHostFieldNumber = 3, + kBasePathFieldNumber = 4, + kInfoFieldNumber = 2, + kSecurityDefinitionsFieldNumber = 11, + kExternalDocsFieldNumber = 14, + }; + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + int schemes_size() const; + private: + int _internal_schemes_size() const; + + public: + void clear_schemes() ; + public: + ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; + void set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); + void add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); + const ::google::protobuf::RepeatedField& schemes() const; + ::google::protobuf::RepeatedField* mutable_schemes(); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement"; - } - protected: - explicit SecurityRequirement(::PROTOBUF_NAMESPACE_ID::Arena* arena); + const ::google::protobuf::RepeatedField& _internal_schemes() const; + ::google::protobuf::RepeatedField* _internal_mutable_schemes(); + public: + // repeated string consumes = 6; + int consumes_size() const; + private: + int _internal_consumes_size() const; - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + void clear_consumes() ; + const std::string& consumes(int index) const; + std::string* mutable_consumes(int index); + void set_consumes(int index, const std::string& value); + void set_consumes(int index, std::string&& value); + void set_consumes(int index, const char* value); + void set_consumes(int index, const char* value, std::size_t size); + void set_consumes(int index, absl::string_view value); + std::string* add_consumes(); + void add_consumes(const std::string& value); + void add_consumes(std::string&& value); + void add_consumes(const char* value); + void add_consumes(const char* value, std::size_t size); + void add_consumes(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& consumes() const; + ::google::protobuf::RepeatedPtrField* mutable_consumes(); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + const ::google::protobuf::RepeatedPtrField& _internal_consumes() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_consumes(); - // nested types ---------------------------------------------------- + public: + // repeated string produces = 7; + int produces_size() const; + private: + int _internal_produces_size() const; - typedef SecurityRequirement_SecurityRequirementValue SecurityRequirementValue; + public: + void clear_produces() ; + const std::string& produces(int index) const; + std::string* mutable_produces(int index); + void set_produces(int index, const std::string& value); + void set_produces(int index, std::string&& value); + void set_produces(int index, const char* value); + void set_produces(int index, const char* value, std::size_t size); + void set_produces(int index, absl::string_view value); + std::string* add_produces(); + void add_produces(const std::string& value); + void add_produces(std::string&& value); + void add_produces(const char* value); + void add_produces(const char* value, std::size_t size); + void add_produces(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& produces() const; + ::google::protobuf::RepeatedPtrField* mutable_produces(); - // accessors ------------------------------------------------------- + private: + const ::google::protobuf::RepeatedPtrField& _internal_produces() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_produces(); - enum : int { - kSecurityRequirementFieldNumber = 1, - }; - // map security_requirement = 1; - int security_requirement_size() const; + public: + // map responses = 10; + int responses_size() const; private: - int _internal_security_requirement_size() const; + int _internal_responses_size() const; public: - void clear_security_requirement() ; + void clear_responses() ; + const ::google::protobuf::Map& responses() const; + ::google::protobuf::Map* mutable_responses(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >& - _internal_security_requirement() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >* - _internal_mutable_security_requirement(); + const ::google::protobuf::Map& _internal_responses() const; + ::google::protobuf::Map* _internal_mutable_responses(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >& - security_requirement() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >* - mutable_security_requirement(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + int security_size() const; + private: + int _internal_security_size() const; + + public: + void clear_security() ; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* mutable_security(int index); + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* mutable_security(); + + private: + const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& _internal_security() const; + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* _internal_mutable_security(); + public: + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* add_security(); + const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& security() const; + // map extensions = 15; + int extensions_size() const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); + + public: + // string swagger = 1; + void clear_swagger() ; + const std::string& swagger() const; + template + void set_swagger(Arg_&& arg, Args_... args); + std::string* mutable_swagger(); + PROTOBUF_NODISCARD std::string* release_swagger(); + void set_allocated_swagger(std::string* value); + + private: + const std::string& _internal_swagger() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_swagger( + const std::string& value); + std::string* _internal_mutable_swagger(); + + public: + // string host = 3; + void clear_host() ; + const std::string& host() const; + template + void set_host(Arg_&& arg, Args_... args); + std::string* mutable_host(); + PROTOBUF_NODISCARD std::string* release_host(); + void set_allocated_host(std::string* value); + + private: + const std::string& _internal_host() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_host( + const std::string& value); + std::string* _internal_mutable_host(); + + public: + // string base_path = 4; + void clear_base_path() ; + const std::string& base_path() const; + template + void set_base_path(Arg_&& arg, Args_... args); + std::string* mutable_base_path(); + PROTOBUF_NODISCARD std::string* release_base_path(); + void set_allocated_base_path(std::string* value); + + private: + const std::string& _internal_base_path() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_base_path( + const std::string& value); + std::string* _internal_mutable_base_path(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + bool has_info() const; + void clear_info() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::Info* release_info(); + ::grpc::gateway::protoc_gen_openapiv2::options::Info* mutable_info(); + void set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* value); + void unsafe_arena_set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* value); + ::grpc::gateway::protoc_gen_openapiv2::options::Info* unsafe_arena_release_info(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::Info& _internal_info() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Info* _internal_mutable_info(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + bool has_security_definitions() const; + void clear_security_definitions() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* release_security_definitions(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* mutable_security_definitions(); + void set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* value); + void unsafe_arena_set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* value); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* unsafe_arena_release_security_definitions(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& _internal_security_definitions() const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* _internal_mutable_security_definitions(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + bool has_external_docs() const; + void clear_external_docs() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); + void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + void unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 12, 8, + 121, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - SecurityRequirement_SecurityRequirementEntry_DoNotUse, - std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> security_requirement_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField schemes_; + mutable ::google::protobuf::internal::CachedSize _schemes_cached_byte_size_; + ::google::protobuf::RepeatedPtrField consumes_; + ::google::protobuf::RepeatedPtrField produces_; + ::google::protobuf::internal::MapField + responses_; + ::google::protobuf::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement > security_; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr swagger_; + ::google::protobuf::internal::ArenaStringPtr host_; + ::google::protobuf::internal::ArenaStringPtr base_path_; + ::grpc::gateway::protoc_gen_openapiv2::options::Info* info_; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; -};// ------------------------------------------------------------------- - -class Scopes_ScopeEntry_DoNotUse final : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Scopes_ScopeEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Scopes_ScopeEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Scopes_ScopeEntry_DoNotUse& other); - static const Scopes_ScopeEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Scopes_ScopeEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; // ------------------------------------------------------------------- -class AGONES_EXPORT Scopes final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Scopes) */ { +class AGONES_EXPORT Operation final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Operation) */ { public: - inline Scopes() : Scopes(nullptr) {} - ~Scopes() override; - template - explicit PROTOBUF_CONSTEXPR Scopes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Scopes(const Scopes& from); - Scopes(Scopes&& from) noexcept - : Scopes() { - *this = ::std::move(from); - } + inline Operation() : Operation(nullptr) {} + ~Operation() override; + template + explicit PROTOBUF_CONSTEXPR Operation( + ::google::protobuf::internal::ConstantInitialized); - inline Scopes& operator=(const Scopes& from) { + inline Operation(const Operation& from) : Operation(nullptr, from) {} + inline Operation(Operation&& from) noexcept + : Operation(nullptr, std::move(from)) {} + inline Operation& operator=(const Operation& from) { CopyFrom(from); return *this; } - inline Scopes& operator=(Scopes&& from) noexcept { + inline Operation& operator=(Operation&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + if (GetArena() == from.GetArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE ) { InternalSwap(&from); } else { @@ -5112,136 +4821,380 @@ class AGONES_EXPORT Scopes final : return *this; } - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Scopes& default_instance() { + static const Operation& default_instance() { return *internal_default_instance(); } - static inline const Scopes* internal_default_instance() { - return reinterpret_cast( - &_Scopes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - friend void swap(Scopes& a, Scopes& b) { - a.Swap(&b); + static inline const Operation* internal_default_instance() { + return reinterpret_cast( + &_Operation_default_instance_); } - inline void Swap(Scopes* other) { + static constexpr int kIndexInFileMessages = 5; + friend void swap(Operation& a, Operation& b) { a.Swap(&b); } + inline void Swap(Operation* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() != nullptr && GetArena() == other->GetArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Scopes* other) { + void UnsafeArenaSwap(Operation* other) { if (other == this) return; - ABSL_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Scopes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Scopes& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Scopes& from) { - Scopes::MergeImpl(*this, from); + Operation* New(::google::protobuf::Arena* arena = nullptr) const final { + return ::google::protobuf::Message::DefaultConstruct(arena); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Operation& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Operation& from) { Operation::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void SharedCtor(::google::protobuf::Arena* arena); void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Scopes* other); + void InternalSwap(Operation* other); + private: + friend class ::google::protobuf::internal::AnyMetadata; + static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Operation"; } + + protected: + explicit Operation(::google::protobuf::Arena* arena); + Operation(::google::protobuf::Arena* arena, const Operation& from); + Operation(::google::protobuf::Arena* arena, Operation&& from) noexcept + : Operation(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::MessageLite::ClassData* GetClassData() + const final; + + public: + ::google::protobuf::Metadata GetMetadata() const final; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kTagsFieldNumber = 1, + kConsumesFieldNumber = 6, + kProducesFieldNumber = 7, + kResponsesFieldNumber = 9, + kSchemesFieldNumber = 10, + kSecurityFieldNumber = 12, + kExtensionsFieldNumber = 13, + kSummaryFieldNumber = 2, + kDescriptionFieldNumber = 3, + kOperationIdFieldNumber = 5, + kExternalDocsFieldNumber = 4, + kDeprecatedFieldNumber = 11, + }; + // repeated string tags = 1; + int tags_size() const; + private: + int _internal_tags_size() const; + + public: + void clear_tags() ; + const std::string& tags(int index) const; + std::string* mutable_tags(int index); + void set_tags(int index, const std::string& value); + void set_tags(int index, std::string&& value); + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, std::size_t size); + void set_tags(int index, absl::string_view value); + std::string* add_tags(); + void add_tags(const std::string& value); + void add_tags(std::string&& value); + void add_tags(const char* value); + void add_tags(const char* value, std::size_t size); + void add_tags(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& tags() const; + ::google::protobuf::RepeatedPtrField* mutable_tags(); private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "grpc.gateway.protoc_gen_openapiv2.options.Scopes"; - } - protected: - explicit Scopes(::PROTOBUF_NAMESPACE_ID::Arena* arena); + const ::google::protobuf::RepeatedPtrField& _internal_tags() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_tags(); + public: + // repeated string consumes = 6; + int consumes_size() const; + private: + int _internal_consumes_size() const; + + public: + void clear_consumes() ; + const std::string& consumes(int index) const; + std::string* mutable_consumes(int index); + void set_consumes(int index, const std::string& value); + void set_consumes(int index, std::string&& value); + void set_consumes(int index, const char* value); + void set_consumes(int index, const char* value, std::size_t size); + void set_consumes(int index, absl::string_view value); + std::string* add_consumes(); + void add_consumes(const std::string& value); + void add_consumes(std::string&& value); + void add_consumes(const char* value); + void add_consumes(const char* value, std::size_t size); + void add_consumes(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& consumes() const; + ::google::protobuf::RepeatedPtrField* mutable_consumes(); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + const ::google::protobuf::RepeatedPtrField& _internal_consumes() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_consumes(); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + // repeated string produces = 7; + int produces_size() const; + private: + int _internal_produces_size() const; - // nested types ---------------------------------------------------- + public: + void clear_produces() ; + const std::string& produces(int index) const; + std::string* mutable_produces(int index); + void set_produces(int index, const std::string& value); + void set_produces(int index, std::string&& value); + void set_produces(int index, const char* value); + void set_produces(int index, const char* value, std::size_t size); + void set_produces(int index, absl::string_view value); + std::string* add_produces(); + void add_produces(const std::string& value); + void add_produces(std::string&& value); + void add_produces(const char* value); + void add_produces(const char* value, std::size_t size); + void add_produces(absl::string_view value); + const ::google::protobuf::RepeatedPtrField& produces() const; + ::google::protobuf::RepeatedPtrField* mutable_produces(); + private: + const ::google::protobuf::RepeatedPtrField& _internal_produces() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_produces(); - // accessors ------------------------------------------------------- + public: + // map responses = 9; + int responses_size() const; + private: + int _internal_responses_size() const; + + public: + void clear_responses() ; + const ::google::protobuf::Map& responses() const; + ::google::protobuf::Map* mutable_responses(); - enum : int { - kScopeFieldNumber = 1, - }; - // map scope = 1; - int scope_size() const; private: - int _internal_scope_size() const; + const ::google::protobuf::Map& _internal_responses() const; + ::google::protobuf::Map* _internal_mutable_responses(); public: - void clear_scope() ; + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; + int schemes_size() const; private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_scope() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_scope(); + int _internal_schemes_size() const; + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - scope() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_scope(); - // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) + void clear_schemes() ; + public: + ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; + void set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); + void add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value); + const ::google::protobuf::RepeatedField& schemes() const; + ::google::protobuf::RepeatedField* mutable_schemes(); + + private: + const ::google::protobuf::RepeatedField& _internal_schemes() const; + ::google::protobuf::RepeatedField* _internal_mutable_schemes(); + + public: + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + int security_size() const; + private: + int _internal_security_size() const; + + public: + void clear_security() ; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* mutable_security(int index); + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* mutable_security(); + + private: + const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& _internal_security() const; + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* _internal_mutable_security(); + public: + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* add_security(); + const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& security() const; + // map extensions = 13; + int extensions_size() const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* _internal_mutable_extensions(); + + public: + // string summary = 2; + void clear_summary() ; + const std::string& summary() const; + template + void set_summary(Arg_&& arg, Args_... args); + std::string* mutable_summary(); + PROTOBUF_NODISCARD std::string* release_summary(); + void set_allocated_summary(std::string* value); + + private: + const std::string& _internal_summary() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_summary( + const std::string& value); + std::string* _internal_mutable_summary(); + + public: + // string description = 3; + void clear_description() ; + const std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + std::string* mutable_description(); + PROTOBUF_NODISCARD std::string* release_description(); + void set_allocated_description(std::string* value); + + private: + const std::string& _internal_description() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( + const std::string& value); + std::string* _internal_mutable_description(); + + public: + // string operation_id = 5; + void clear_operation_id() ; + const std::string& operation_id() const; + template + void set_operation_id(Arg_&& arg, Args_... args); + std::string* mutable_operation_id(); + PROTOBUF_NODISCARD std::string* release_operation_id(); + void set_allocated_operation_id(std::string* value); + + private: + const std::string& _internal_operation_id() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_operation_id( + const std::string& value); + std::string* _internal_mutable_operation_id(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + bool has_external_docs() const; + void clear_external_docs() ; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + PROTOBUF_NODISCARD ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* release_external_docs(); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* mutable_external_docs(); + void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + void unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value); + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* unsafe_arena_release_external_docs(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _internal_mutable_external_docs(); + + public: + // bool deprecated = 11; + void clear_deprecated() ; + bool deprecated() const; + void set_deprecated(bool value); + + private: + bool _internal_deprecated() const; + void _internal_set_deprecated(bool value); + + public: + // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 12, 6, + 137, 2> + _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Scopes_ScopeEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> scope_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField tags_; + ::google::protobuf::RepeatedPtrField consumes_; + ::google::protobuf::RepeatedPtrField produces_; + ::google::protobuf::internal::MapField + responses_; + ::google::protobuf::RepeatedField schemes_; + mutable ::google::protobuf::internal::CachedSize _schemes_cached_byte_size_; + ::google::protobuf::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement > security_; + ::google::protobuf::internal::MapField + extensions_; + ::google::protobuf::internal::ArenaStringPtr summary_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::google::protobuf::internal::ArenaStringPtr operation_id_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs_; + bool deprecated_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; @@ -5269,46 +5222,49 @@ class AGONES_EXPORT Scopes final : // string swagger = 1; inline void Swagger::clear_swagger() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.swagger_.ClearToEmpty(); } -inline const std::string& Swagger::swagger() const { +inline const std::string& Swagger::swagger() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) return _internal_swagger(); } template inline PROTOBUF_ALWAYS_INLINE void Swagger::set_swagger(Arg_&& arg, Args_... args) { - ; - _impl_.swagger_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.swagger_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) } -inline std::string* Swagger::mutable_swagger() { +inline std::string* Swagger::mutable_swagger() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_swagger(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) return _s; } inline const std::string& Swagger::_internal_swagger() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.swagger_.Get(); } inline void Swagger::_internal_set_swagger(const std::string& value) { - ; - - - _impl_.swagger_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.swagger_.Set(value, GetArena()); } inline std::string* Swagger::_internal_mutable_swagger() { - ; - return _impl_.swagger_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.swagger_.Mutable( GetArena()); } inline std::string* Swagger::release_swagger() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) return _impl_.swagger_.Release(); } inline void Swagger::set_allocated_swagger(std::string* value) { - _impl_.swagger_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.swagger_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.swagger_.IsDefault()) { - _impl_.swagger_.Set("", GetArenaForAllocation()); + _impl_.swagger_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) @@ -5321,25 +5277,26 @@ inline bool Swagger::has_info() const { return value; } inline void Swagger::clear_info() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.info_ != nullptr) _impl_.info_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Info& Swagger::_internal_info() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::Info* p = _impl_.info_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_Info_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_Info_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::Info& Swagger::info() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::Info& Swagger::info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) return _internal_info(); } -inline void Swagger::unsafe_arena_set_allocated_info( - ::grpc::gateway::protoc_gen_openapiv2::options::Info* info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.info_); +inline void Swagger::unsafe_arena_set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.info_); } - _impl_.info_ = info; - if (info) { + _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -5347,102 +5304,113 @@ inline void Swagger::unsafe_arena_set_allocated_info( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* Swagger::release_info() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::Info* temp = _impl_.info_; + ::grpc::gateway::protoc_gen_openapiv2::options::Info* released = _impl_.info_; _impl_.info_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* Swagger::unsafe_arena_release_info() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Info* temp = _impl_.info_; _impl_.info_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* Swagger::_internal_mutable_info() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.info_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Info>(GetArenaForAllocation()); - _impl_.info_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Info>(GetArena()); + _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(p); } return _impl_.info_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* Swagger::mutable_info() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* Swagger::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Info* _msg = _internal_mutable_info(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) return _msg; } -inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.info_; + delete (_impl_.info_); } - if (info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(info); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, info, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.info_ = info; + + _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) } // string host = 3; inline void Swagger::clear_host() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.host_.ClearToEmpty(); } -inline const std::string& Swagger::host() const { +inline const std::string& Swagger::host() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) return _internal_host(); } template inline PROTOBUF_ALWAYS_INLINE void Swagger::set_host(Arg_&& arg, Args_... args) { - ; - _impl_.host_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.host_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) } -inline std::string* Swagger::mutable_host() { +inline std::string* Swagger::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) return _s; } inline const std::string& Swagger::_internal_host() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.host_.Get(); } inline void Swagger::_internal_set_host(const std::string& value) { - ; - - - _impl_.host_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.host_.Set(value, GetArena()); } inline std::string* Swagger::_internal_mutable_host() { - ; - return _impl_.host_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.host_.Mutable( GetArena()); } inline std::string* Swagger::release_host() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) return _impl_.host_.Release(); } inline void Swagger::set_allocated_host(std::string* value) { - _impl_.host_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.host_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.host_.IsDefault()) { - _impl_.host_.Set("", GetArenaForAllocation()); + _impl_.host_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) @@ -5450,46 +5418,49 @@ inline void Swagger::set_allocated_host(std::string* value) { // string base_path = 4; inline void Swagger::clear_base_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.base_path_.ClearToEmpty(); } -inline const std::string& Swagger::base_path() const { +inline const std::string& Swagger::base_path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) return _internal_base_path(); } template inline PROTOBUF_ALWAYS_INLINE void Swagger::set_base_path(Arg_&& arg, Args_... args) { - ; - _impl_.base_path_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.base_path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) } -inline std::string* Swagger::mutable_base_path() { +inline std::string* Swagger::mutable_base_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_base_path(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) return _s; } inline const std::string& Swagger::_internal_base_path() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.base_path_.Get(); } inline void Swagger::_internal_set_base_path(const std::string& value) { - ; - - - _impl_.base_path_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.base_path_.Set(value, GetArena()); } inline std::string* Swagger::_internal_mutable_base_path() { - ; - return _impl_.base_path_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.base_path_.Mutable( GetArena()); } inline std::string* Swagger::release_base_path() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) return _impl_.base_path_.Release(); } inline void Swagger::set_allocated_base_path(std::string* value) { - _impl_.base_path_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.base_path_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.base_path_.IsDefault()) { - _impl_.base_path_.Set("", GetArenaForAllocation()); + _impl_.base_path_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) @@ -5497,67 +5468,74 @@ inline void Swagger::set_allocated_base_path(std::string* value) { // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; inline int Swagger::_internal_schemes_size() const { - return _impl_.schemes_.size(); + return _internal_schemes().size(); } inline int Swagger::schemes_size() const { return _internal_schemes_size(); } inline void Swagger::clear_schemes() { - _internal_mutable_schemes()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.schemes_.Clear(); } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scheme Swagger::schemes(int index) const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) - return _internal_schemes(index); + return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(_internal_schemes().Get(index)); } inline void Swagger::set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { _internal_mutable_schemes()->Set(index, value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) } inline void Swagger::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { - _internal_add_schemes(value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_schemes()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& Swagger::schemes() const { +inline const ::google::protobuf::RepeatedField& Swagger::schemes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) return _internal_schemes(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* Swagger::mutable_schemes() { +inline ::google::protobuf::RepeatedField* Swagger::mutable_schemes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) - return _internal_mutable_schemes(); -} -inline ::grpc::gateway::protoc_gen_openapiv2::options::Scheme Swagger::_internal_schemes(int index) const { - return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(_internal_schemes().Get(index)); -} -inline void Swagger::_internal_add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { - _internal_mutable_schemes()->Add(value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _internal_mutable_schemes(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& Swagger::_internal_schemes() const { +inline const ::google::protobuf::RepeatedField& Swagger::_internal_schemes() + const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.schemes_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* Swagger::_internal_mutable_schemes() { +inline ::google::protobuf::RepeatedField* Swagger::_internal_mutable_schemes() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.schemes_; } // repeated string consumes = 6; inline int Swagger::_internal_consumes_size() const { - return _impl_.consumes_.size(); + return _internal_consumes().size(); } inline int Swagger::consumes_size() const { return _internal_consumes_size(); } inline void Swagger::clear_consumes() { - _internal_mutable_consumes()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.consumes_.Clear(); } -inline std::string* Swagger::add_consumes() { - std::string* _s = _internal_add_consumes(); +inline std::string* Swagger::add_consumes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_consumes()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) return _s; } -inline const std::string& Swagger::consumes(int index) const { +inline const std::string& Swagger::consumes(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) - return _internal_consumes(index); + return _internal_consumes().Get(index); } -inline std::string* Swagger::mutable_consumes(int index) { +inline std::string* Swagger::mutable_consumes(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) return _internal_mutable_consumes()->Mutable(index); } @@ -5581,76 +5559,85 @@ inline void Swagger::set_consumes(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::set_consumes(int index, absl::string_view value) { - _internal_mutable_consumes()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_consumes()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::add_consumes(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::add_consumes(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::add_consumes(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::add_consumes(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline void Swagger::add_consumes(absl::string_view value) { - _internal_mutable_consumes()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_consumes()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -Swagger::consumes() const { +inline const ::google::protobuf::RepeatedPtrField& +Swagger::consumes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) return _internal_consumes(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Swagger::mutable_consumes() { +inline ::google::protobuf::RepeatedPtrField* +Swagger::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_consumes(); } -inline const std::string& Swagger::_internal_consumes(int index) const { - return _internal_consumes().Get(index); -} -inline std::string* Swagger::_internal_add_consumes() { - return _internal_mutable_consumes()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& Swagger::_internal_consumes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.consumes_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* Swagger::_internal_mutable_consumes() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.consumes_; } // repeated string produces = 7; inline int Swagger::_internal_produces_size() const { - return _impl_.produces_.size(); + return _internal_produces().size(); } inline int Swagger::produces_size() const { return _internal_produces_size(); } inline void Swagger::clear_produces() { - _internal_mutable_produces()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.produces_.Clear(); } -inline std::string* Swagger::add_produces() { - std::string* _s = _internal_add_produces(); +inline std::string* Swagger::add_produces() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_produces()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) return _s; } -inline const std::string& Swagger::produces(int index) const { +inline const std::string& Swagger::produces(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) - return _internal_produces(index); + return _internal_produces().Get(index); } -inline std::string* Swagger::mutable_produces(int index) { +inline std::string* Swagger::mutable_produces(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) return _internal_mutable_produces()->Mutable(index); } @@ -5674,81 +5661,84 @@ inline void Swagger::set_produces(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::set_produces(int index, absl::string_view value) { - _internal_mutable_produces()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_produces()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::add_produces(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::add_produces(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::add_produces(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::add_produces(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline void Swagger::add_produces(absl::string_view value) { - _internal_mutable_produces()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_produces()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -Swagger::produces() const { +inline const ::google::protobuf::RepeatedPtrField& +Swagger::produces() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) return _internal_produces(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Swagger::mutable_produces() { +inline ::google::protobuf::RepeatedPtrField* +Swagger::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_produces(); } -inline const std::string& Swagger::_internal_produces(int index) const { - return _internal_produces().Get(index); -} -inline std::string* Swagger::_internal_add_produces() { - return _internal_mutable_produces()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& Swagger::_internal_produces() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.produces_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* Swagger::_internal_mutable_produces() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.produces_; } // map responses = 10; inline int Swagger::_internal_responses_size() const { - return _impl_.responses_.size(); + return _internal_responses().size(); } inline int Swagger::responses_size() const { return _internal_responses_size(); } inline void Swagger::clear_responses() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.responses_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& -Swagger::_internal_responses() const { +inline const ::google::protobuf::Map& Swagger::_internal_responses() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.responses_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& -Swagger::responses() const { +inline const ::google::protobuf::Map& Swagger::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses) return _internal_responses(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* -Swagger::_internal_mutable_responses() { +inline ::google::protobuf::Map* Swagger::_internal_mutable_responses() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.responses_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* -Swagger::mutable_responses() { +inline ::google::protobuf::Map* Swagger::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses) return _internal_mutable_responses(); } @@ -5760,25 +5750,26 @@ inline bool Swagger::has_security_definitions() const { return value; } inline void Swagger::clear_security_definitions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.security_definitions_ != nullptr) _impl_.security_definitions_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& Swagger::_internal_security_definitions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* p = _impl_.security_definitions_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& Swagger::security_definitions() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& Swagger::security_definitions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) return _internal_security_definitions(); } -inline void Swagger::unsafe_arena_set_allocated_security_definitions( - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.security_definitions_); +inline void Swagger::unsafe_arena_set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.security_definitions_); } - _impl_.security_definitions_ = security_definitions; - if (security_definitions) { + _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -5786,105 +5777,114 @@ inline void Swagger::unsafe_arena_set_allocated_security_definitions( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Swagger::release_security_definitions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000002u; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* temp = _impl_.security_definitions_; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* released = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Swagger::unsafe_arena_release_security_definitions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* temp = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Swagger::_internal_mutable_security_definitions() { - _impl_._has_bits_[0] |= 0x00000002u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.security_definitions_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(GetArenaForAllocation()); - _impl_.security_definitions_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(GetArena()); + _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(p); } return _impl_.security_definitions_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Swagger::mutable_security_definitions() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* Swagger::mutable_security_definitions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* _msg = _internal_mutable_security_definitions(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) return _msg; } -inline void Swagger::set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* security_definitions) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Swagger::set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.security_definitions_; + delete (_impl_.security_definitions_); } - if (security_definitions) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(security_definitions); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - security_definitions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, security_definitions, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.security_definitions_ = security_definitions; + + _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; inline int Swagger::_internal_security_size() const { - return _impl_.security_.size(); + return _internal_security().size(); } inline int Swagger::security_size() const { return _internal_security_size(); } inline void Swagger::clear_security() { - _internal_mutable_security()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.security_.Clear(); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Swagger::mutable_security(int index) { +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Swagger::mutable_security(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _internal_mutable_security()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >* -Swagger::mutable_security() { +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* Swagger::mutable_security() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_security(); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Swagger::_internal_security(int index) const { - return _internal_security().Get(index); -} -inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Swagger::security(int index) const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Swagger::security(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) - return _internal_security(index); -} -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Swagger::_internal_add_security() { - return _internal_mutable_security()->Add(); + return _internal_security().Get(index); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Swagger::add_security() { - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_add_security(); +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Swagger::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_mutable_security()->Add(); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >& -Swagger::security() const { +inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Swagger::security() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _internal_security(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& +inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Swagger::_internal_security() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.security_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* Swagger::_internal_mutable_security() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.security_; } @@ -5895,25 +5895,26 @@ inline bool Swagger::has_external_docs() const { return value; } inline void Swagger::clear_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Swagger::_internal_external_docs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Swagger::external_docs() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Swagger::external_docs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) return _internal_external_docs(); } -inline void Swagger::unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.external_docs_); +inline void Swagger::unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.external_docs_); } - _impl_.external_docs_ = external_docs; - if (external_docs) { + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -5921,82 +5922,88 @@ inline void Swagger::unsafe_arena_set_allocated_external_docs( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Swagger::release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000004u; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Swagger::unsafe_arena_release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) + _impl_._has_bits_[0] &= ~0x00000004u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Swagger::_internal_mutable_external_docs() { - _impl_._has_bits_[0] |= 0x00000004u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArenaForAllocation()); - _impl_.external_docs_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArena()); + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(p); } return _impl_.external_docs_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Swagger::mutable_external_docs() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Swagger::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _msg = _internal_mutable_external_docs(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) return _msg; } -inline void Swagger::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Swagger::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.external_docs_; + delete (_impl_.external_docs_); } - if (external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(external_docs); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - external_docs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, external_docs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.external_docs_ = external_docs; + + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) } // map extensions = 15; inline int Swagger::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int Swagger::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Swagger::_internal_extensions() const { +inline const ::google::protobuf::Map& Swagger::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Swagger::extensions() const { +inline const ::google::protobuf::Map& Swagger::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Swagger::_internal_mutable_extensions() { +inline ::google::protobuf::Map* Swagger::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Swagger::mutable_extensions() { +inline ::google::protobuf::Map* Swagger::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions) return _internal_mutable_extensions(); } @@ -6011,24 +6018,29 @@ Swagger::mutable_extensions() { // repeated string tags = 1; inline int Operation::_internal_tags_size() const { - return _impl_.tags_.size(); + return _internal_tags().size(); } inline int Operation::tags_size() const { return _internal_tags_size(); } inline void Operation::clear_tags() { - _internal_mutable_tags()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.tags_.Clear(); } -inline std::string* Operation::add_tags() { - std::string* _s = _internal_add_tags(); +inline std::string* Operation::add_tags() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_tags()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) return _s; } -inline const std::string& Operation::tags(int index) const { +inline const std::string& Operation::tags(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) - return _internal_tags(index); + return _internal_tags().Get(index); } -inline std::string* Operation::mutable_tags(int index) { +inline std::string* Operation::mutable_tags(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) return _internal_mutable_tags()->Mutable(index); } @@ -6052,98 +6064,105 @@ inline void Operation::set_tags(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::set_tags(int index, absl::string_view value) { - _internal_mutable_tags()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_tags()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::add_tags(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_tags()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::add_tags(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_tags()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::add_tags(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_tags()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::add_tags(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_tags()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline void Operation::add_tags(absl::string_view value) { - _internal_mutable_tags()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_tags()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -Operation::tags() const { +inline const ::google::protobuf::RepeatedPtrField& +Operation::tags() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) return _internal_tags(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Operation::mutable_tags() { +inline ::google::protobuf::RepeatedPtrField* +Operation::mutable_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_tags(); } -inline const std::string& Operation::_internal_tags(int index) const { - return _internal_tags().Get(index); -} -inline std::string* Operation::_internal_add_tags() { - return _internal_mutable_tags()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& Operation::_internal_tags() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.tags_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* Operation::_internal_mutable_tags() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.tags_; } // string summary = 2; inline void Operation::clear_summary() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.summary_.ClearToEmpty(); } -inline const std::string& Operation::summary() const { +inline const std::string& Operation::summary() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) return _internal_summary(); } template inline PROTOBUF_ALWAYS_INLINE void Operation::set_summary(Arg_&& arg, Args_... args) { - ; - _impl_.summary_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.summary_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) } -inline std::string* Operation::mutable_summary() { +inline std::string* Operation::mutable_summary() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_summary(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) return _s; } inline const std::string& Operation::_internal_summary() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.summary_.Get(); } inline void Operation::_internal_set_summary(const std::string& value) { - ; - - - _impl_.summary_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.summary_.Set(value, GetArena()); } inline std::string* Operation::_internal_mutable_summary() { - ; - return _impl_.summary_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.summary_.Mutable( GetArena()); } inline std::string* Operation::release_summary() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) return _impl_.summary_.Release(); } inline void Operation::set_allocated_summary(std::string* value) { - _impl_.summary_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.summary_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.summary_.IsDefault()) { - _impl_.summary_.Set("", GetArenaForAllocation()); + _impl_.summary_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) @@ -6151,46 +6170,49 @@ inline void Operation::set_allocated_summary(std::string* value) { // string description = 3; inline void Operation::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& Operation::description() const { +inline const std::string& Operation::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void Operation::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) } -inline std::string* Operation::mutable_description() { +inline std::string* Operation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) return _s; } inline const std::string& Operation::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void Operation::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* Operation::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* Operation::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) return _impl_.description_.Release(); } inline void Operation::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) @@ -6203,25 +6225,26 @@ inline bool Operation::has_external_docs() const { return value; } inline void Operation::clear_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Operation::_internal_external_docs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Operation::external_docs() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Operation::external_docs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) return _internal_external_docs(); } -inline void Operation::unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.external_docs_); +inline void Operation::unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.external_docs_); } - _impl_.external_docs_ = external_docs; - if (external_docs) { + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -6229,102 +6252,113 @@ inline void Operation::unsafe_arena_set_allocated_external_docs( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Operation::release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Operation::unsafe_arena_release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Operation::_internal_mutable_external_docs() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArenaForAllocation()); - _impl_.external_docs_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArena()); + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(p); } return _impl_.external_docs_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Operation::mutable_external_docs() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Operation::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _msg = _internal_mutable_external_docs(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) return _msg; } -inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.external_docs_; + delete (_impl_.external_docs_); } - if (external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(external_docs); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - external_docs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, external_docs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.external_docs_ = external_docs; + + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) } // string operation_id = 5; inline void Operation::clear_operation_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.operation_id_.ClearToEmpty(); } -inline const std::string& Operation::operation_id() const { +inline const std::string& Operation::operation_id() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) return _internal_operation_id(); } template inline PROTOBUF_ALWAYS_INLINE void Operation::set_operation_id(Arg_&& arg, Args_... args) { - ; - _impl_.operation_id_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.operation_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) } -inline std::string* Operation::mutable_operation_id() { +inline std::string* Operation::mutable_operation_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_operation_id(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) return _s; } inline const std::string& Operation::_internal_operation_id() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.operation_id_.Get(); } inline void Operation::_internal_set_operation_id(const std::string& value) { - ; - - - _impl_.operation_id_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.operation_id_.Set(value, GetArena()); } inline std::string* Operation::_internal_mutable_operation_id() { - ; - return _impl_.operation_id_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.operation_id_.Mutable( GetArena()); } inline std::string* Operation::release_operation_id() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) return _impl_.operation_id_.Release(); } inline void Operation::set_allocated_operation_id(std::string* value) { - _impl_.operation_id_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.operation_id_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.operation_id_.IsDefault()) { - _impl_.operation_id_.Set("", GetArenaForAllocation()); + _impl_.operation_id_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) @@ -6332,24 +6366,29 @@ inline void Operation::set_allocated_operation_id(std::string* value) { // repeated string consumes = 6; inline int Operation::_internal_consumes_size() const { - return _impl_.consumes_.size(); + return _internal_consumes().size(); } inline int Operation::consumes_size() const { return _internal_consumes_size(); } inline void Operation::clear_consumes() { - _internal_mutable_consumes()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.consumes_.Clear(); } -inline std::string* Operation::add_consumes() { - std::string* _s = _internal_add_consumes(); +inline std::string* Operation::add_consumes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_consumes()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) return _s; } -inline const std::string& Operation::consumes(int index) const { +inline const std::string& Operation::consumes(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) - return _internal_consumes(index); + return _internal_consumes().Get(index); } -inline std::string* Operation::mutable_consumes(int index) { +inline std::string* Operation::mutable_consumes(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) return _internal_mutable_consumes()->Mutable(index); } @@ -6373,76 +6412,85 @@ inline void Operation::set_consumes(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::set_consumes(int index, absl::string_view value) { - _internal_mutable_consumes()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_consumes()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::add_consumes(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::add_consumes(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::add_consumes(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::add_consumes(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_consumes()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline void Operation::add_consumes(absl::string_view value) { - _internal_mutable_consumes()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_consumes()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -Operation::consumes() const { +inline const ::google::protobuf::RepeatedPtrField& +Operation::consumes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) return _internal_consumes(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Operation::mutable_consumes() { +inline ::google::protobuf::RepeatedPtrField* +Operation::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_consumes(); } -inline const std::string& Operation::_internal_consumes(int index) const { - return _internal_consumes().Get(index); -} -inline std::string* Operation::_internal_add_consumes() { - return _internal_mutable_consumes()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& Operation::_internal_consumes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.consumes_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* Operation::_internal_mutable_consumes() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.consumes_; } // repeated string produces = 7; inline int Operation::_internal_produces_size() const { - return _impl_.produces_.size(); + return _internal_produces().size(); } inline int Operation::produces_size() const { return _internal_produces_size(); } inline void Operation::clear_produces() { - _internal_mutable_produces()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.produces_.Clear(); } -inline std::string* Operation::add_produces() { - std::string* _s = _internal_add_produces(); +inline std::string* Operation::add_produces() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_produces()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) return _s; } -inline const std::string& Operation::produces(int index) const { +inline const std::string& Operation::produces(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) - return _internal_produces(index); + return _internal_produces().Get(index); } -inline std::string* Operation::mutable_produces(int index) { +inline std::string* Operation::mutable_produces(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) return _internal_mutable_produces()->Mutable(index); } @@ -6466,130 +6514,136 @@ inline void Operation::set_produces(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::set_produces(int index, absl::string_view value) { - _internal_mutable_produces()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_produces()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::add_produces(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::add_produces(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::add_produces(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::add_produces(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_produces()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline void Operation::add_produces(absl::string_view value) { - _internal_mutable_produces()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_produces()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -Operation::produces() const { +inline const ::google::protobuf::RepeatedPtrField& +Operation::produces() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) return _internal_produces(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Operation::mutable_produces() { +inline ::google::protobuf::RepeatedPtrField* +Operation::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_produces(); } -inline const std::string& Operation::_internal_produces(int index) const { - return _internal_produces().Get(index); -} -inline std::string* Operation::_internal_add_produces() { - return _internal_mutable_produces()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& Operation::_internal_produces() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.produces_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* Operation::_internal_mutable_produces() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.produces_; } // map responses = 9; inline int Operation::_internal_responses_size() const { - return _impl_.responses_.size(); + return _internal_responses().size(); } inline int Operation::responses_size() const { return _internal_responses_size(); } inline void Operation::clear_responses() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.responses_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& -Operation::_internal_responses() const { +inline const ::google::protobuf::Map& Operation::_internal_responses() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.responses_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >& -Operation::responses() const { +inline const ::google::protobuf::Map& Operation::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.responses) return _internal_responses(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* -Operation::_internal_mutable_responses() { +inline ::google::protobuf::Map* Operation::_internal_mutable_responses() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.responses_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >* -Operation::mutable_responses() { +inline ::google::protobuf::Map* Operation::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.responses) return _internal_mutable_responses(); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; inline int Operation::_internal_schemes_size() const { - return _impl_.schemes_.size(); + return _internal_schemes().size(); } inline int Operation::schemes_size() const { return _internal_schemes_size(); } inline void Operation::clear_schemes() { - _internal_mutable_schemes()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.schemes_.Clear(); } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scheme Operation::schemes(int index) const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) - return _internal_schemes(index); + return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(_internal_schemes().Get(index)); } inline void Operation::set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { _internal_mutable_schemes()->Set(index, value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) } inline void Operation::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { - _internal_add_schemes(value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_schemes()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& Operation::schemes() const { +inline const ::google::protobuf::RepeatedField& Operation::schemes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) return _internal_schemes(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* Operation::mutable_schemes() { +inline ::google::protobuf::RepeatedField* Operation::mutable_schemes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_schemes(); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::Scheme Operation::_internal_schemes(int index) const { - return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(_internal_schemes().Get(index)); -} -inline void Operation::_internal_add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { - _internal_mutable_schemes()->Add(value); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& Operation::_internal_schemes() const { +inline const ::google::protobuf::RepeatedField& Operation::_internal_schemes() + const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.schemes_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* Operation::_internal_mutable_schemes() { +inline ::google::protobuf::RepeatedField* Operation::_internal_mutable_schemes() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.schemes_; } // bool deprecated = 11; inline void Operation::clear_deprecated() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.deprecated_ = false; } inline bool Operation::deprecated() const { @@ -6601,83 +6655,83 @@ inline void Operation::set_deprecated(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.deprecated) } inline bool Operation::_internal_deprecated() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.deprecated_; } inline void Operation::_internal_set_deprecated(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.deprecated_ = value; } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; inline int Operation::_internal_security_size() const { - return _impl_.security_.size(); + return _internal_security().size(); } inline int Operation::security_size() const { return _internal_security_size(); } inline void Operation::clear_security() { - _internal_mutable_security()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.security_.Clear(); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Operation::mutable_security(int index) { +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Operation::mutable_security(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _internal_mutable_security()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >* -Operation::mutable_security() { +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* Operation::mutable_security() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_security(); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Operation::_internal_security(int index) const { - return _internal_security().Get(index); -} -inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Operation::security(int index) const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& Operation::security(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) - return _internal_security(index); -} -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Operation::_internal_add_security() { - return _internal_mutable_security()->Add(); + return _internal_security().Get(index); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Operation::add_security() { - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_add_security(); +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* Operation::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_mutable_security()->Add(); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >& -Operation::security() const { +inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Operation::security() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _internal_security(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& +inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Operation::_internal_security() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.security_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* Operation::_internal_mutable_security() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.security_; } // map extensions = 13; inline int Operation::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int Operation::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Operation::_internal_extensions() const { +inline const ::google::protobuf::Map& Operation::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Operation::extensions() const { +inline const ::google::protobuf::Map& Operation::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Operation::_internal_mutable_extensions() { +inline ::google::protobuf::Map* Operation::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Operation::mutable_extensions() { +inline ::google::protobuf::Map* Operation::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions) return _internal_mutable_extensions(); } @@ -6688,46 +6742,49 @@ Operation::mutable_extensions() { // string description = 1; inline void Header::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& Header::description() const { +inline const std::string& Header::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Header.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void Header::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.description) } -inline std::string* Header::mutable_description() { +inline std::string* Header::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.description) return _s; } inline const std::string& Header::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void Header::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* Header::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* Header::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.description) return _impl_.description_.Release(); } inline void Header::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Header.description) @@ -6735,46 +6792,49 @@ inline void Header::set_allocated_description(std::string* value) { // string type = 2; inline void Header::clear_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_.ClearToEmpty(); } -inline const std::string& Header::type() const { +inline const std::string& Header::type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Header.type) return _internal_type(); } template inline PROTOBUF_ALWAYS_INLINE void Header::set_type(Arg_&& arg, Args_... args) { - ; - _impl_.type_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.type) } -inline std::string* Header::mutable_type() { +inline std::string* Header::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.type) return _s; } inline const std::string& Header::_internal_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.type_.Get(); } inline void Header::_internal_set_type(const std::string& value) { - ; - - - _impl_.type_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.Set(value, GetArena()); } inline std::string* Header::_internal_mutable_type() { - ; - return _impl_.type_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.type_.Mutable( GetArena()); } inline std::string* Header::release_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.type) return _impl_.type_.Release(); } inline void Header::set_allocated_type(std::string* value) { - _impl_.type_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArenaForAllocation()); + _impl_.type_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Header.type) @@ -6782,46 +6842,49 @@ inline void Header::set_allocated_type(std::string* value) { // string format = 3; inline void Header::clear_format() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.format_.ClearToEmpty(); } -inline const std::string& Header::format() const { +inline const std::string& Header::format() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Header.format) return _internal_format(); } template inline PROTOBUF_ALWAYS_INLINE void Header::set_format(Arg_&& arg, Args_... args) { - ; - _impl_.format_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.format) } -inline std::string* Header::mutable_format() { +inline std::string* Header::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.format) return _s; } inline const std::string& Header::_internal_format() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.format_.Get(); } inline void Header::_internal_set_format(const std::string& value) { - ; - - - _impl_.format_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.Set(value, GetArena()); } inline std::string* Header::_internal_mutable_format() { - ; - return _impl_.format_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.format_.Mutable( GetArena()); } inline std::string* Header::release_format() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.format) return _impl_.format_.Release(); } inline void Header::set_allocated_format(std::string* value) { - _impl_.format_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.format_.IsDefault()) { - _impl_.format_.Set("", GetArenaForAllocation()); + _impl_.format_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Header.format) @@ -6829,46 +6892,49 @@ inline void Header::set_allocated_format(std::string* value) { // string default = 6; inline void Header::clear_default_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.default__.ClearToEmpty(); } -inline const std::string& Header::default_() const { +inline const std::string& Header::default_() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Header.default) return _internal_default_(); } template inline PROTOBUF_ALWAYS_INLINE void Header::set_default_(Arg_&& arg, Args_... args) { - ; - _impl_.default__.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.default) } -inline std::string* Header::mutable_default_() { +inline std::string* Header::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.default) return _s; } inline const std::string& Header::_internal_default_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.default__.Get(); } inline void Header::_internal_set_default_(const std::string& value) { - ; - - - _impl_.default__.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.Set(value, GetArena()); } inline std::string* Header::_internal_mutable_default_() { - ; - return _impl_.default__.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.default__.Mutable( GetArena()); } inline std::string* Header::release_default_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.default) return _impl_.default__.Release(); } inline void Header::set_allocated_default_(std::string* value) { - _impl_.default__.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.default__.IsDefault()) { - _impl_.default__.Set("", GetArenaForAllocation()); + _impl_.default__.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Header.default) @@ -6876,46 +6942,49 @@ inline void Header::set_allocated_default_(std::string* value) { // string pattern = 13; inline void Header::clear_pattern() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.pattern_.ClearToEmpty(); } -inline const std::string& Header::pattern() const { +inline const std::string& Header::pattern() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) return _internal_pattern(); } template inline PROTOBUF_ALWAYS_INLINE void Header::set_pattern(Arg_&& arg, Args_... args) { - ; - _impl_.pattern_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) } -inline std::string* Header::mutable_pattern() { +inline std::string* Header::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) return _s; } inline const std::string& Header::_internal_pattern() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.pattern_.Get(); } inline void Header::_internal_set_pattern(const std::string& value) { - ; - - - _impl_.pattern_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.Set(value, GetArena()); } inline std::string* Header::_internal_mutable_pattern() { - ; - return _impl_.pattern_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.pattern_.Mutable( GetArena()); } inline std::string* Header::release_pattern() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) return _impl_.pattern_.Release(); } inline void Header::set_allocated_pattern(std::string* value) { - _impl_.pattern_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.pattern_.IsDefault()) { - _impl_.pattern_.Set("", GetArenaForAllocation()); + _impl_.pattern_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) @@ -6933,46 +7002,49 @@ inline void Header::set_allocated_pattern(std::string* value) { // string description = 1; inline void Response::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& Response::description() const { +inline const std::string& Response::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Response.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void Response::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Response.description) } -inline std::string* Response::mutable_description() { +inline std::string* Response::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Response.description) return _s; } inline const std::string& Response::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void Response::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* Response::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* Response::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.description) return _impl_.description_.Release(); } inline void Response::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Response.description) @@ -6985,25 +7057,26 @@ inline bool Response::has_schema() const { return value; } inline void Response::clear_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.schema_ != nullptr) _impl_.schema_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& Response::_internal_schema() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::Schema* p = _impl_.schema_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_Schema_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_Schema_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& Response::schema() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& Response::schema() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) return _internal_schema(); } -inline void Response::unsafe_arena_set_allocated_schema( - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_); +inline void Response::unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.schema_); } - _impl_.schema_ = schema; - if (schema) { + _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -7011,140 +7084,144 @@ inline void Response::unsafe_arena_set_allocated_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Response::release_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* temp = _impl_.schema_; + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* released = _impl_.schema_; _impl_.schema_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Response::unsafe_arena_release_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Schema* temp = _impl_.schema_; _impl_.schema_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Response::_internal_mutable_schema() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.schema_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(GetArenaForAllocation()); - _impl_.schema_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(GetArena()); + _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(p); } return _impl_.schema_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Response::mutable_schema() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* Response::mutable_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Schema* _msg = _internal_mutable_schema(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) return _msg; } -inline void Response::set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Response::set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.schema_; + delete (_impl_.schema_); } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(schema); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.schema_ = schema; + + _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) } // map headers = 3; inline int Response::_internal_headers_size() const { - return _impl_.headers_.size(); + return _internal_headers().size(); } inline int Response::headers_size() const { return _internal_headers_size(); } inline void Response::clear_headers() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.headers_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >& -Response::_internal_headers() const { +inline const ::google::protobuf::Map& Response::_internal_headers() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.headers_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >& -Response::headers() const { +inline const ::google::protobuf::Map& Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.headers) return _internal_headers(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >* -Response::_internal_mutable_headers() { +inline ::google::protobuf::Map* Response::_internal_mutable_headers() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.headers_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >* -Response::mutable_headers() { +inline ::google::protobuf::Map* Response::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.headers) return _internal_mutable_headers(); } // map examples = 4; inline int Response::_internal_examples_size() const { - return _impl_.examples_.size(); + return _internal_examples().size(); } inline int Response::examples_size() const { return _internal_examples_size(); } inline void Response::clear_examples() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.examples_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -Response::_internal_examples() const { +inline const ::google::protobuf::Map& Response::_internal_examples() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.examples_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -Response::examples() const { +inline const ::google::protobuf::Map& Response::examples() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.examples) return _internal_examples(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -Response::_internal_mutable_examples() { +inline ::google::protobuf::Map* Response::_internal_mutable_examples() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.examples_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -Response::mutable_examples() { +inline ::google::protobuf::Map* Response::mutable_examples() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.examples) return _internal_mutable_examples(); } // map extensions = 5; inline int Response::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int Response::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Response::_internal_extensions() const { +inline const ::google::protobuf::Map& Response::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Response::extensions() const { +inline const ::google::protobuf::Map& Response::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Response::_internal_mutable_extensions() { +inline ::google::protobuf::Map* Response::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Response::mutable_extensions() { +inline ::google::protobuf::Map* Response::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.extensions) return _internal_mutable_extensions(); } @@ -7157,46 +7234,49 @@ Response::mutable_extensions() { // string title = 1; inline void Info::clear_title() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.title_.ClearToEmpty(); } -inline const std::string& Info::title() const { +inline const std::string& Info::title() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.title) return _internal_title(); } template inline PROTOBUF_ALWAYS_INLINE void Info::set_title(Arg_&& arg, Args_... args) { - ; - _impl_.title_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.title) } -inline std::string* Info::mutable_title() { +inline std::string* Info::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.title) return _s; } inline const std::string& Info::_internal_title() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.title_.Get(); } inline void Info::_internal_set_title(const std::string& value) { - ; - - - _impl_.title_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.Set(value, GetArena()); } inline std::string* Info::_internal_mutable_title() { - ; - return _impl_.title_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.title_.Mutable( GetArena()); } inline std::string* Info::release_title() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.title) return _impl_.title_.Release(); } inline void Info::set_allocated_title(std::string* value) { - _impl_.title_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.title_.IsDefault()) { - _impl_.title_.Set("", GetArenaForAllocation()); + _impl_.title_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.title) @@ -7204,46 +7284,49 @@ inline void Info::set_allocated_title(std::string* value) { // string description = 2; inline void Info::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& Info::description() const { +inline const std::string& Info::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void Info::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.description) } -inline std::string* Info::mutable_description() { +inline std::string* Info::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.description) return _s; } inline const std::string& Info::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void Info::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* Info::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* Info::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.description) return _impl_.description_.Release(); } inline void Info::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.description) @@ -7251,46 +7334,49 @@ inline void Info::set_allocated_description(std::string* value) { // string terms_of_service = 3; inline void Info::clear_terms_of_service() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.terms_of_service_.ClearToEmpty(); } -inline const std::string& Info::terms_of_service() const { +inline const std::string& Info::terms_of_service() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) return _internal_terms_of_service(); } template inline PROTOBUF_ALWAYS_INLINE void Info::set_terms_of_service(Arg_&& arg, Args_... args) { - ; - _impl_.terms_of_service_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.terms_of_service_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) } -inline std::string* Info::mutable_terms_of_service() { +inline std::string* Info::mutable_terms_of_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_terms_of_service(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) return _s; } inline const std::string& Info::_internal_terms_of_service() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.terms_of_service_.Get(); } inline void Info::_internal_set_terms_of_service(const std::string& value) { - ; - - - _impl_.terms_of_service_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.terms_of_service_.Set(value, GetArena()); } inline std::string* Info::_internal_mutable_terms_of_service() { - ; - return _impl_.terms_of_service_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.terms_of_service_.Mutable( GetArena()); } inline std::string* Info::release_terms_of_service() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) return _impl_.terms_of_service_.Release(); } inline void Info::set_allocated_terms_of_service(std::string* value) { - _impl_.terms_of_service_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.terms_of_service_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.terms_of_service_.IsDefault()) { - _impl_.terms_of_service_.Set("", GetArenaForAllocation()); + _impl_.terms_of_service_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) @@ -7303,25 +7389,26 @@ inline bool Info::has_contact() const { return value; } inline void Info::clear_contact() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.contact_ != nullptr) _impl_.contact_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& Info::_internal_contact() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::Contact* p = _impl_.contact_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_Contact_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_Contact_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& Info::contact() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& Info::contact() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) return _internal_contact(); } -inline void Info::unsafe_arena_set_allocated_contact( - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.contact_); +inline void Info::unsafe_arena_set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.contact_); } - _impl_.contact_ = contact; - if (contact) { + _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -7329,57 +7416,65 @@ inline void Info::unsafe_arena_set_allocated_contact( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Info::release_contact() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::Contact* temp = _impl_.contact_; + ::grpc::gateway::protoc_gen_openapiv2::options::Contact* released = _impl_.contact_; _impl_.contact_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Info::unsafe_arena_release_contact() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Contact* temp = _impl_.contact_; _impl_.contact_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Info::_internal_mutable_contact() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.contact_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(GetArenaForAllocation()); - _impl_.contact_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(GetArena()); + _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(p); } return _impl_.contact_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Info::mutable_contact() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* Info::mutable_contact() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Contact* _msg = _internal_mutable_contact(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) return _msg; } -inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.contact_; + delete (_impl_.contact_); } - if (contact) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(contact); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - contact = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, contact, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.contact_ = contact; + + _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) } @@ -7390,25 +7485,26 @@ inline bool Info::has_license() const { return value; } inline void Info::clear_license() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.license_ != nullptr) _impl_.license_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::License& Info::_internal_license() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::License* p = _impl_.license_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_License_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_License_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::License& Info::license() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::License& Info::license() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.license) return _internal_license(); } -inline void Info::unsafe_arena_set_allocated_license( - ::grpc::gateway::protoc_gen_openapiv2::options::License* license) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.license_); +inline void Info::unsafe_arena_set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.license_); } - _impl_.license_ = license; - if (license) { + _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -7416,102 +7512,113 @@ inline void Info::unsafe_arena_set_allocated_license( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.license) } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* Info::release_license() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000002u; - ::grpc::gateway::protoc_gen_openapiv2::options::License* temp = _impl_.license_; + ::grpc::gateway::protoc_gen_openapiv2::options::License* released = _impl_.license_; _impl_.license_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* Info::unsafe_arena_release_license() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.license) + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::License* temp = _impl_.license_; _impl_.license_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* Info::_internal_mutable_license() { - _impl_._has_bits_[0] |= 0x00000002u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.license_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::License>(GetArenaForAllocation()); - _impl_.license_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::License>(GetArena()); + _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(p); } return _impl_.license_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::License* Info::mutable_license() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::License* Info::mutable_license() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::License* _msg = _internal_mutable_license(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.license) return _msg; } -inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* license) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.license_; + delete (_impl_.license_); } - if (license) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(license); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - license = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, license, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.license_ = license; + + _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.license) } // string version = 6; inline void Info::clear_version() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.version_.ClearToEmpty(); } -inline const std::string& Info::version() const { +inline const std::string& Info::version() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.version) return _internal_version(); } template inline PROTOBUF_ALWAYS_INLINE void Info::set_version(Arg_&& arg, Args_... args) { - ; - _impl_.version_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.version) } -inline std::string* Info::mutable_version() { +inline std::string* Info::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.version) return _s; } inline const std::string& Info::_internal_version() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.version_.Get(); } inline void Info::_internal_set_version(const std::string& value) { - ; - - - _impl_.version_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.version_.Set(value, GetArena()); } inline std::string* Info::_internal_mutable_version() { - ; - return _impl_.version_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.version_.Mutable( GetArena()); } inline std::string* Info::release_version() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.version) return _impl_.version_.Release(); } inline void Info::set_allocated_version(std::string* value) { - _impl_.version_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.version_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArenaForAllocation()); + _impl_.version_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.version) @@ -7519,26 +7626,24 @@ inline void Info::set_allocated_version(std::string* value) { // map extensions = 7; inline int Info::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int Info::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Info::_internal_extensions() const { +inline const ::google::protobuf::Map& Info::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -Info::extensions() const { +inline const ::google::protobuf::Map& Info::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Info.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Info::_internal_mutable_extensions() { +inline ::google::protobuf::Map* Info::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -Info::mutable_extensions() { +inline ::google::protobuf::Map* Info::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Info.extensions) return _internal_mutable_extensions(); } @@ -7549,46 +7654,49 @@ Info::mutable_extensions() { // string name = 1; inline void Contact::clear_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.name_.ClearToEmpty(); } -inline const std::string& Contact::name() const { +inline const std::string& Contact::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void Contact::set_name(Arg_&& arg, Args_... args) { - ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) } -inline std::string* Contact::mutable_name() { +inline std::string* Contact::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) return _s; } inline const std::string& Contact::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.name_.Get(); } inline void Contact::_internal_set_name(const std::string& value) { - ; - - - _impl_.name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); } inline std::string* Contact::_internal_mutable_name() { - ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Contact::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) return _impl_.name_.Release(); } inline void Contact::set_allocated_name(std::string* value) { - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) @@ -7596,46 +7704,49 @@ inline void Contact::set_allocated_name(std::string* value) { // string url = 2; inline void Contact::clear_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.url_.ClearToEmpty(); } -inline const std::string& Contact::url() const { +inline const std::string& Contact::url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) return _internal_url(); } template inline PROTOBUF_ALWAYS_INLINE void Contact::set_url(Arg_&& arg, Args_... args) { - ; - _impl_.url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) } -inline std::string* Contact::mutable_url() { +inline std::string* Contact::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) return _s; } inline const std::string& Contact::_internal_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.url_.Get(); } inline void Contact::_internal_set_url(const std::string& value) { - ; - - - _impl_.url_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(value, GetArena()); } inline std::string* Contact::_internal_mutable_url() { - ; - return _impl_.url_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.url_.Mutable( GetArena()); } inline std::string* Contact::release_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) return _impl_.url_.Release(); } inline void Contact::set_allocated_url(std::string* value) { - _impl_.url_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArenaForAllocation()); + _impl_.url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) @@ -7643,46 +7754,49 @@ inline void Contact::set_allocated_url(std::string* value) { // string email = 3; inline void Contact::clear_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.email_.ClearToEmpty(); } -inline const std::string& Contact::email() const { +inline const std::string& Contact::email() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) return _internal_email(); } template inline PROTOBUF_ALWAYS_INLINE void Contact::set_email(Arg_&& arg, Args_... args) { - ; - _impl_.email_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.email_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) } -inline std::string* Contact::mutable_email() { +inline std::string* Contact::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_email(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) return _s; } inline const std::string& Contact::_internal_email() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.email_.Get(); } inline void Contact::_internal_set_email(const std::string& value) { - ; - - - _impl_.email_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.email_.Set(value, GetArena()); } inline std::string* Contact::_internal_mutable_email() { - ; - return _impl_.email_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.email_.Mutable( GetArena()); } inline std::string* Contact::release_email() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) return _impl_.email_.Release(); } inline void Contact::set_allocated_email(std::string* value) { - _impl_.email_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.email_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArenaForAllocation()); + _impl_.email_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) @@ -7694,46 +7808,49 @@ inline void Contact::set_allocated_email(std::string* value) { // string name = 1; inline void License::clear_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.name_.ClearToEmpty(); } -inline const std::string& License::name() const { +inline const std::string& License::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.License.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void License::set_name(Arg_&& arg, Args_... args) { - ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.name) } -inline std::string* License::mutable_name() { +inline std::string* License::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.name) return _s; } inline const std::string& License::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.name_.Get(); } inline void License::_internal_set_name(const std::string& value) { - ; - - - _impl_.name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); } inline std::string* License::_internal_mutable_name() { - ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* License::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.name) return _impl_.name_.Release(); } inline void License::set_allocated_name(std::string* value) { - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.License.name) @@ -7741,46 +7858,49 @@ inline void License::set_allocated_name(std::string* value) { // string url = 2; inline void License::clear_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.url_.ClearToEmpty(); } -inline const std::string& License::url() const { +inline const std::string& License::url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.License.url) return _internal_url(); } template inline PROTOBUF_ALWAYS_INLINE void License::set_url(Arg_&& arg, Args_... args) { - ; - _impl_.url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.url) } -inline std::string* License::mutable_url() { +inline std::string* License::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.url) return _s; } inline const std::string& License::_internal_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.url_.Get(); } inline void License::_internal_set_url(const std::string& value) { - ; - - - _impl_.url_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(value, GetArena()); } inline std::string* License::_internal_mutable_url() { - ; - return _impl_.url_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.url_.Mutable( GetArena()); } inline std::string* License::release_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.url) return _impl_.url_.Release(); } inline void License::set_allocated_url(std::string* value) { - _impl_.url_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArenaForAllocation()); + _impl_.url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.License.url) @@ -7792,46 +7912,49 @@ inline void License::set_allocated_url(std::string* value) { // string description = 1; inline void ExternalDocumentation::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& ExternalDocumentation::description() const { +inline const std::string& ExternalDocumentation::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) } -inline std::string* ExternalDocumentation::mutable_description() { +inline std::string* ExternalDocumentation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) return _s; } inline const std::string& ExternalDocumentation::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void ExternalDocumentation::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* ExternalDocumentation::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* ExternalDocumentation::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) return _impl_.description_.Release(); } inline void ExternalDocumentation::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) @@ -7839,46 +7962,49 @@ inline void ExternalDocumentation::set_allocated_description(std::string* value) // string url = 2; inline void ExternalDocumentation::clear_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.url_.ClearToEmpty(); } -inline const std::string& ExternalDocumentation::url() const { +inline const std::string& ExternalDocumentation::url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) return _internal_url(); } template inline PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_url(Arg_&& arg, Args_... args) { - ; - _impl_.url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) } -inline std::string* ExternalDocumentation::mutable_url() { +inline std::string* ExternalDocumentation::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) return _s; } inline const std::string& ExternalDocumentation::_internal_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.url_.Get(); } inline void ExternalDocumentation::_internal_set_url(const std::string& value) { - ; - - - _impl_.url_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.Set(value, GetArena()); } inline std::string* ExternalDocumentation::_internal_mutable_url() { - ; - return _impl_.url_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.url_.Mutable( GetArena()); } inline std::string* ExternalDocumentation::release_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) return _impl_.url_.Release(); } inline void ExternalDocumentation::set_allocated_url(std::string* value) { - _impl_.url_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.url_.IsDefault()) { - _impl_.url_.Set("", GetArenaForAllocation()); + _impl_.url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) @@ -7895,25 +8021,26 @@ inline bool Schema::has_json_schema() const { return value; } inline void Schema::clear_json_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.json_schema_ != nullptr) _impl_.json_schema_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& Schema::_internal_json_schema() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* p = _impl_.json_schema_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& Schema::json_schema() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& Schema::json_schema() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) return _internal_json_schema(); } -inline void Schema::unsafe_arena_set_allocated_json_schema( - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.json_schema_); +inline void Schema::unsafe_arena_set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.json_schema_); } - _impl_.json_schema_ = json_schema; - if (json_schema) { + _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -7921,102 +8048,113 @@ inline void Schema::unsafe_arena_set_allocated_json_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Schema::release_json_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* temp = _impl_.json_schema_; + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* released = _impl_.json_schema_; _impl_.json_schema_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Schema::unsafe_arena_release_json_schema() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* temp = _impl_.json_schema_; _impl_.json_schema_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Schema::_internal_mutable_json_schema() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.json_schema_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(GetArenaForAllocation()); - _impl_.json_schema_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(GetArena()); + _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(p); } return _impl_.json_schema_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Schema::mutable_json_schema() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* Schema::mutable_json_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* _msg = _internal_mutable_json_schema(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) return _msg; } -inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* json_schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.json_schema_; + delete (_impl_.json_schema_); } - if (json_schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(json_schema); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - json_schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, json_schema, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.json_schema_ = json_schema; + + _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) } // string discriminator = 2; inline void Schema::clear_discriminator() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.discriminator_.ClearToEmpty(); } -inline const std::string& Schema::discriminator() const { +inline const std::string& Schema::discriminator() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) return _internal_discriminator(); } template inline PROTOBUF_ALWAYS_INLINE void Schema::set_discriminator(Arg_&& arg, Args_... args) { - ; - _impl_.discriminator_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.discriminator_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) } -inline std::string* Schema::mutable_discriminator() { +inline std::string* Schema::mutable_discriminator() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_discriminator(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) return _s; } inline const std::string& Schema::_internal_discriminator() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.discriminator_.Get(); } inline void Schema::_internal_set_discriminator(const std::string& value) { - ; - - - _impl_.discriminator_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.discriminator_.Set(value, GetArena()); } inline std::string* Schema::_internal_mutable_discriminator() { - ; - return _impl_.discriminator_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.discriminator_.Mutable( GetArena()); } inline std::string* Schema::release_discriminator() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) return _impl_.discriminator_.Release(); } inline void Schema::set_allocated_discriminator(std::string* value) { - _impl_.discriminator_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.discriminator_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.discriminator_.IsDefault()) { - _impl_.discriminator_.Set("", GetArenaForAllocation()); + _impl_.discriminator_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) @@ -8024,6 +8162,7 @@ inline void Schema::set_allocated_discriminator(std::string* value) { // bool read_only = 3; inline void Schema::clear_read_only() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.read_only_ = false; } inline bool Schema::read_only() const { @@ -8035,10 +8174,11 @@ inline void Schema::set_read_only(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.read_only) } inline bool Schema::_internal_read_only() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.read_only_; } inline void Schema::_internal_set_read_only(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.read_only_ = value; } @@ -8049,25 +8189,26 @@ inline bool Schema::has_external_docs() const { return value; } inline void Schema::clear_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Schema::_internal_external_docs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Schema::external_docs() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Schema::external_docs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) return _internal_external_docs(); } -inline void Schema::unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.external_docs_); +inline void Schema::unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.external_docs_); } - _impl_.external_docs_ = external_docs; - if (external_docs) { + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -8075,102 +8216,113 @@ inline void Schema::unsafe_arena_set_allocated_external_docs( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Schema::release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000002u; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Schema::unsafe_arena_release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Schema::_internal_mutable_external_docs() { - _impl_._has_bits_[0] |= 0x00000002u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArenaForAllocation()); - _impl_.external_docs_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArena()); + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(p); } return _impl_.external_docs_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Schema::mutable_external_docs() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Schema::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _msg = _internal_mutable_external_docs(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) return _msg; } -inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.external_docs_; + delete (_impl_.external_docs_); } - if (external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(external_docs); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - external_docs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, external_docs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.external_docs_ = external_docs; + + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) } // string example = 6; inline void Schema::clear_example() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.example_.ClearToEmpty(); } -inline const std::string& Schema::example() const { +inline const std::string& Schema::example() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) return _internal_example(); } template inline PROTOBUF_ALWAYS_INLINE void Schema::set_example(Arg_&& arg, Args_... args) { - ; - _impl_.example_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) } -inline std::string* Schema::mutable_example() { +inline std::string* Schema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) return _s; } inline const std::string& Schema::_internal_example() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.example_.Get(); } inline void Schema::_internal_set_example(const std::string& value) { - ; - - - _impl_.example_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.Set(value, GetArena()); } inline std::string* Schema::_internal_mutable_example() { - ; - return _impl_.example_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.example_.Mutable( GetArena()); } inline std::string* Schema::release_example() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) return _impl_.example_.Release(); } inline void Schema::set_allocated_example(std::string* value) { - _impl_.example_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.example_.IsDefault()) { - _impl_.example_.Set("", GetArenaForAllocation()); + _impl_.example_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) @@ -8182,46 +8334,49 @@ inline void Schema::set_allocated_example(std::string* value) { // string path_param_name = 47; inline void JSONSchema_FieldConfiguration::clear_path_param_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.path_param_name_.ClearToEmpty(); } -inline const std::string& JSONSchema_FieldConfiguration::path_param_name() const { +inline const std::string& JSONSchema_FieldConfiguration::path_param_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) return _internal_path_param_name(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema_FieldConfiguration::set_path_param_name(Arg_&& arg, Args_... args) { - ; - _impl_.path_param_name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_param_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) } -inline std::string* JSONSchema_FieldConfiguration::mutable_path_param_name() { +inline std::string* JSONSchema_FieldConfiguration::mutable_path_param_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path_param_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) return _s; } inline const std::string& JSONSchema_FieldConfiguration::_internal_path_param_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.path_param_name_.Get(); } inline void JSONSchema_FieldConfiguration::_internal_set_path_param_name(const std::string& value) { - ; - - - _impl_.path_param_name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_param_name_.Set(value, GetArena()); } inline std::string* JSONSchema_FieldConfiguration::_internal_mutable_path_param_name() { - ; - return _impl_.path_param_name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.path_param_name_.Mutable( GetArena()); } inline std::string* JSONSchema_FieldConfiguration::release_path_param_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) return _impl_.path_param_name_.Release(); } inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(std::string* value) { - _impl_.path_param_name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.path_param_name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.path_param_name_.IsDefault()) { - _impl_.path_param_name_.Set("", GetArenaForAllocation()); + _impl_.path_param_name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) @@ -8235,46 +8390,49 @@ inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(std::st // string ref = 3; inline void JSONSchema::clear_ref() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.ref_.ClearToEmpty(); } -inline const std::string& JSONSchema::ref() const { +inline const std::string& JSONSchema::ref() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) return _internal_ref(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_ref(Arg_&& arg, Args_... args) { - ; - _impl_.ref_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ref_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) } -inline std::string* JSONSchema::mutable_ref() { +inline std::string* JSONSchema::mutable_ref() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_ref(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) return _s; } inline const std::string& JSONSchema::_internal_ref() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.ref_.Get(); } inline void JSONSchema::_internal_set_ref(const std::string& value) { - ; - - - _impl_.ref_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ref_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_ref() { - ; - return _impl_.ref_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.ref_.Mutable( GetArena()); } inline std::string* JSONSchema::release_ref() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) return _impl_.ref_.Release(); } inline void JSONSchema::set_allocated_ref(std::string* value) { - _impl_.ref_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.ref_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.ref_.IsDefault()) { - _impl_.ref_.Set("", GetArenaForAllocation()); + _impl_.ref_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) @@ -8282,46 +8440,49 @@ inline void JSONSchema::set_allocated_ref(std::string* value) { // string title = 5; inline void JSONSchema::clear_title() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.title_.ClearToEmpty(); } -inline const std::string& JSONSchema::title() const { +inline const std::string& JSONSchema::title() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) return _internal_title(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_title(Arg_&& arg, Args_... args) { - ; - _impl_.title_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) } -inline std::string* JSONSchema::mutable_title() { +inline std::string* JSONSchema::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) return _s; } inline const std::string& JSONSchema::_internal_title() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.title_.Get(); } inline void JSONSchema::_internal_set_title(const std::string& value) { - ; - - - _impl_.title_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_title() { - ; - return _impl_.title_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.title_.Mutable( GetArena()); } inline std::string* JSONSchema::release_title() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) return _impl_.title_.Release(); } inline void JSONSchema::set_allocated_title(std::string* value) { - _impl_.title_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.title_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.title_.IsDefault()) { - _impl_.title_.Set("", GetArenaForAllocation()); + _impl_.title_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) @@ -8329,46 +8490,49 @@ inline void JSONSchema::set_allocated_title(std::string* value) { // string description = 6; inline void JSONSchema::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& JSONSchema::description() const { +inline const std::string& JSONSchema::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) } -inline std::string* JSONSchema::mutable_description() { +inline std::string* JSONSchema::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) return _s; } inline const std::string& JSONSchema::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void JSONSchema::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* JSONSchema::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) return _impl_.description_.Release(); } inline void JSONSchema::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) @@ -8376,46 +8540,49 @@ inline void JSONSchema::set_allocated_description(std::string* value) { // string default = 7; inline void JSONSchema::clear_default_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.default__.ClearToEmpty(); } -inline const std::string& JSONSchema::default_() const { +inline const std::string& JSONSchema::default_() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) return _internal_default_(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_default_(Arg_&& arg, Args_... args) { - ; - _impl_.default__.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) } -inline std::string* JSONSchema::mutable_default_() { +inline std::string* JSONSchema::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) return _s; } inline const std::string& JSONSchema::_internal_default_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.default__.Get(); } inline void JSONSchema::_internal_set_default_(const std::string& value) { - ; - - - _impl_.default__.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_default_() { - ; - return _impl_.default__.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.default__.Mutable( GetArena()); } inline std::string* JSONSchema::release_default_() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) return _impl_.default__.Release(); } inline void JSONSchema::set_allocated_default_(std::string* value) { - _impl_.default__.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.default__.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.default__.IsDefault()) { - _impl_.default__.Set("", GetArenaForAllocation()); + _impl_.default__.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) @@ -8423,6 +8590,7 @@ inline void JSONSchema::set_allocated_default_(std::string* value) { // bool read_only = 8; inline void JSONSchema::clear_read_only() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.read_only_ = false; } inline bool JSONSchema::read_only() const { @@ -8434,55 +8602,59 @@ inline void JSONSchema::set_read_only(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.read_only) } inline bool JSONSchema::_internal_read_only() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.read_only_; } inline void JSONSchema::_internal_set_read_only(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.read_only_ = value; } // string example = 9; inline void JSONSchema::clear_example() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.example_.ClearToEmpty(); } -inline const std::string& JSONSchema::example() const { +inline const std::string& JSONSchema::example() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) return _internal_example(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_example(Arg_&& arg, Args_... args) { - ; - _impl_.example_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) } -inline std::string* JSONSchema::mutable_example() { +inline std::string* JSONSchema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) return _s; } inline const std::string& JSONSchema::_internal_example() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.example_.Get(); } inline void JSONSchema::_internal_set_example(const std::string& value) { - ; - - - _impl_.example_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_example() { - ; - return _impl_.example_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.example_.Mutable( GetArena()); } inline std::string* JSONSchema::release_example() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) return _impl_.example_.Release(); } inline void JSONSchema::set_allocated_example(std::string* value) { - _impl_.example_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.example_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.example_.IsDefault()) { - _impl_.example_.Set("", GetArenaForAllocation()); + _impl_.example_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) @@ -8490,6 +8662,7 @@ inline void JSONSchema::set_allocated_example(std::string* value) { // double multiple_of = 10; inline void JSONSchema::clear_multiple_of() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.multiple_of_ = 0; } inline double JSONSchema::multiple_of() const { @@ -8501,15 +8674,17 @@ inline void JSONSchema::set_multiple_of(double value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.multiple_of) } inline double JSONSchema::_internal_multiple_of() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.multiple_of_; } inline void JSONSchema::_internal_set_multiple_of(double value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.multiple_of_ = value; } // double maximum = 11; inline void JSONSchema::clear_maximum() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.maximum_ = 0; } inline double JSONSchema::maximum() const { @@ -8521,15 +8696,17 @@ inline void JSONSchema::set_maximum(double value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.maximum) } inline double JSONSchema::_internal_maximum() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.maximum_; } inline void JSONSchema::_internal_set_maximum(double value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.maximum_ = value; } // bool exclusive_maximum = 12; inline void JSONSchema::clear_exclusive_maximum() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.exclusive_maximum_ = false; } inline bool JSONSchema::exclusive_maximum() const { @@ -8541,15 +8718,17 @@ inline void JSONSchema::set_exclusive_maximum(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_maximum) } inline bool JSONSchema::_internal_exclusive_maximum() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.exclusive_maximum_; } inline void JSONSchema::_internal_set_exclusive_maximum(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.exclusive_maximum_ = value; } // double minimum = 13; inline void JSONSchema::clear_minimum() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.minimum_ = 0; } inline double JSONSchema::minimum() const { @@ -8561,15 +8740,17 @@ inline void JSONSchema::set_minimum(double value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.minimum) } inline double JSONSchema::_internal_minimum() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.minimum_; } inline void JSONSchema::_internal_set_minimum(double value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.minimum_ = value; } // bool exclusive_minimum = 14; inline void JSONSchema::clear_exclusive_minimum() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.exclusive_minimum_ = false; } inline bool JSONSchema::exclusive_minimum() const { @@ -8581,15 +8762,17 @@ inline void JSONSchema::set_exclusive_minimum(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_minimum) } inline bool JSONSchema::_internal_exclusive_minimum() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.exclusive_minimum_; } inline void JSONSchema::_internal_set_exclusive_minimum(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.exclusive_minimum_ = value; } // uint64 max_length = 15; inline void JSONSchema::clear_max_length() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_length_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::max_length() const { @@ -8601,15 +8784,17 @@ inline void JSONSchema::set_max_length(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_length) } inline ::uint64_t JSONSchema::_internal_max_length() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.max_length_; } inline void JSONSchema::_internal_set_max_length(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_length_ = value; } // uint64 min_length = 16; inline void JSONSchema::clear_min_length() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_length_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::min_length() const { @@ -8621,55 +8806,59 @@ inline void JSONSchema::set_min_length(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_length) } inline ::uint64_t JSONSchema::_internal_min_length() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.min_length_; } inline void JSONSchema::_internal_set_min_length(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_length_ = value; } // string pattern = 17; inline void JSONSchema::clear_pattern() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.pattern_.ClearToEmpty(); } -inline const std::string& JSONSchema::pattern() const { +inline const std::string& JSONSchema::pattern() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) return _internal_pattern(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_pattern(Arg_&& arg, Args_... args) { - ; - _impl_.pattern_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) } -inline std::string* JSONSchema::mutable_pattern() { +inline std::string* JSONSchema::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) return _s; } inline const std::string& JSONSchema::_internal_pattern() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.pattern_.Get(); } inline void JSONSchema::_internal_set_pattern(const std::string& value) { - ; - - - _impl_.pattern_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_pattern() { - ; - return _impl_.pattern_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.pattern_.Mutable( GetArena()); } inline std::string* JSONSchema::release_pattern() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) return _impl_.pattern_.Release(); } inline void JSONSchema::set_allocated_pattern(std::string* value) { - _impl_.pattern_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.pattern_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.pattern_.IsDefault()) { - _impl_.pattern_.Set("", GetArenaForAllocation()); + _impl_.pattern_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) @@ -8677,6 +8866,7 @@ inline void JSONSchema::set_allocated_pattern(std::string* value) { // uint64 max_items = 20; inline void JSONSchema::clear_max_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_items_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::max_items() const { @@ -8688,15 +8878,17 @@ inline void JSONSchema::set_max_items(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_items) } inline ::uint64_t JSONSchema::_internal_max_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.max_items_; } inline void JSONSchema::_internal_set_max_items(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_items_ = value; } // uint64 min_items = 21; inline void JSONSchema::clear_min_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_items_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::min_items() const { @@ -8708,15 +8900,17 @@ inline void JSONSchema::set_min_items(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_items) } inline ::uint64_t JSONSchema::_internal_min_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.min_items_; } inline void JSONSchema::_internal_set_min_items(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_items_ = value; } // bool unique_items = 22; inline void JSONSchema::clear_unique_items() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.unique_items_ = false; } inline bool JSONSchema::unique_items() const { @@ -8728,15 +8922,17 @@ inline void JSONSchema::set_unique_items(bool value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.unique_items) } inline bool JSONSchema::_internal_unique_items() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.unique_items_; } inline void JSONSchema::_internal_set_unique_items(bool value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.unique_items_ = value; } // uint64 max_properties = 24; inline void JSONSchema::clear_max_properties() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_properties_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::max_properties() const { @@ -8748,15 +8944,17 @@ inline void JSONSchema::set_max_properties(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_properties) } inline ::uint64_t JSONSchema::_internal_max_properties() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.max_properties_; } inline void JSONSchema::_internal_set_max_properties(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.max_properties_ = value; } // uint64 min_properties = 25; inline void JSONSchema::clear_min_properties() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_properties_ = ::uint64_t{0u}; } inline ::uint64_t JSONSchema::min_properties() const { @@ -8768,33 +8966,39 @@ inline void JSONSchema::set_min_properties(::uint64_t value) { // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_properties) } inline ::uint64_t JSONSchema::_internal_min_properties() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.min_properties_; } inline void JSONSchema::_internal_set_min_properties(::uint64_t value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.min_properties_ = value; } // repeated string required = 26; inline int JSONSchema::_internal_required_size() const { - return _impl_.required_.size(); + return _internal_required().size(); } inline int JSONSchema::required_size() const { return _internal_required_size(); } inline void JSONSchema::clear_required() { - _internal_mutable_required()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.required_.Clear(); } -inline std::string* JSONSchema::add_required() { - std::string* _s = _internal_add_required(); +inline std::string* JSONSchema::add_required() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_required()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) return _s; } -inline const std::string& JSONSchema::required(int index) const { +inline const std::string& JSONSchema::required(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) - return _internal_required(index); + return _internal_required().Get(index); } -inline std::string* JSONSchema::mutable_required(int index) { +inline std::string* JSONSchema::mutable_required(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) return _internal_mutable_required()->Mutable(index); } @@ -8818,76 +9022,85 @@ inline void JSONSchema::set_required(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::set_required(int index, absl::string_view value) { - _internal_mutable_required()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_required()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::add_required(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_required()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::add_required(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_required()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::add_required(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_required()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::add_required(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_required()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline void JSONSchema::add_required(absl::string_view value) { - _internal_mutable_required()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_required()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -JSONSchema::required() const { +inline const ::google::protobuf::RepeatedPtrField& +JSONSchema::required() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) return _internal_required(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* JSONSchema::mutable_required() { +inline ::google::protobuf::RepeatedPtrField* +JSONSchema::mutable_required() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_required(); } -inline const std::string& JSONSchema::_internal_required(int index) const { - return _internal_required().Get(index); -} -inline std::string* JSONSchema::_internal_add_required() { - return _internal_mutable_required()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& JSONSchema::_internal_required() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.required_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* JSONSchema::_internal_mutable_required() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.required_; } // repeated string array = 34; inline int JSONSchema::_internal_array_size() const { - return _impl_.array_.size(); + return _internal_array().size(); } inline int JSONSchema::array_size() const { return _internal_array_size(); } inline void JSONSchema::clear_array() { - _internal_mutable_array()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.array_.Clear(); } -inline std::string* JSONSchema::add_array() { - std::string* _s = _internal_add_array(); +inline std::string* JSONSchema::add_array() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_array()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) return _s; } -inline const std::string& JSONSchema::array(int index) const { +inline const std::string& JSONSchema::array(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) - return _internal_array(index); + return _internal_array().Get(index); } -inline std::string* JSONSchema::mutable_array(int index) { +inline std::string* JSONSchema::mutable_array(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) return _internal_mutable_array()->Mutable(index); } @@ -8911,141 +9124,150 @@ inline void JSONSchema::set_array(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::set_array(int index, absl::string_view value) { - _internal_mutable_array()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_array()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::add_array(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_array()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::add_array(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_array()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::add_array(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_array()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::add_array(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_array()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline void JSONSchema::add_array(absl::string_view value) { - _internal_mutable_array()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_array()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -JSONSchema::array() const { +inline const ::google::protobuf::RepeatedPtrField& +JSONSchema::array() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) return _internal_array(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* JSONSchema::mutable_array() { +inline ::google::protobuf::RepeatedPtrField* +JSONSchema::mutable_array() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_array(); } -inline const std::string& JSONSchema::_internal_array(int index) const { - return _internal_array().Get(index); -} -inline std::string* JSONSchema::_internal_add_array() { - return _internal_mutable_array()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& JSONSchema::_internal_array() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.array_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* JSONSchema::_internal_mutable_array() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.array_; } // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; inline int JSONSchema::_internal_type_size() const { - return _impl_.type_.size(); + return _internal_type().size(); } inline int JSONSchema::type_size() const { return _internal_type_size(); } inline void JSONSchema::clear_type() { - _internal_mutable_type()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.type_.Clear(); } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes JSONSchema::type(int index) const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) - return _internal_type(index); + return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes>(_internal_type().Get(index)); } inline void JSONSchema::set_type(int index, ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value) { _internal_mutable_type()->Set(index, value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) } inline void JSONSchema::add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value) { - _internal_add_type(value); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_type()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& JSONSchema::type() const { +inline const ::google::protobuf::RepeatedField& JSONSchema::type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) return _internal_type(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* JSONSchema::mutable_type() { +inline ::google::protobuf::RepeatedField* JSONSchema::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_type(); } -inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes JSONSchema::_internal_type(int index) const { - return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes>(_internal_type().Get(index)); -} -inline void JSONSchema::_internal_add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value) { - _internal_mutable_type()->Add(value); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& JSONSchema::_internal_type() const { +inline const ::google::protobuf::RepeatedField& JSONSchema::_internal_type() + const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.type_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* JSONSchema::_internal_mutable_type() { +inline ::google::protobuf::RepeatedField* JSONSchema::_internal_mutable_type() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.type_; } // string format = 36; inline void JSONSchema::clear_format() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.format_.ClearToEmpty(); } -inline const std::string& JSONSchema::format() const { +inline const std::string& JSONSchema::format() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) return _internal_format(); } template inline PROTOBUF_ALWAYS_INLINE void JSONSchema::set_format(Arg_&& arg, Args_... args) { - ; - _impl_.format_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) } -inline std::string* JSONSchema::mutable_format() { +inline std::string* JSONSchema::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) return _s; } inline const std::string& JSONSchema::_internal_format() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.format_.Get(); } inline void JSONSchema::_internal_set_format(const std::string& value) { - ; - - - _impl_.format_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.Set(value, GetArena()); } inline std::string* JSONSchema::_internal_mutable_format() { - ; - return _impl_.format_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.format_.Mutable( GetArena()); } inline std::string* JSONSchema::release_format() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) return _impl_.format_.Release(); } inline void JSONSchema::set_allocated_format(std::string* value) { - _impl_.format_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.format_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.format_.IsDefault()) { - _impl_.format_.Set("", GetArenaForAllocation()); + _impl_.format_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) @@ -9053,24 +9275,29 @@ inline void JSONSchema::set_allocated_format(std::string* value) { // repeated string enum = 46; inline int JSONSchema::_internal_enum__size() const { - return _impl_.enum__.size(); + return _internal_enum_().size(); } inline int JSONSchema::enum__size() const { return _internal_enum__size(); } inline void JSONSchema::clear_enum_() { - _internal_mutable_enum_()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.enum__.Clear(); } -inline std::string* JSONSchema::add_enum_() { - std::string* _s = _internal_add_enum_(); +inline std::string* JSONSchema::add_enum_() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_enum_()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) return _s; } -inline const std::string& JSONSchema::enum_(int index) const { +inline const std::string& JSONSchema::enum_(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) - return _internal_enum_(index); + return _internal_enum_().Get(index); } -inline std::string* JSONSchema::mutable_enum_(int index) { +inline std::string* JSONSchema::mutable_enum_(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) return _internal_mutable_enum_()->Mutable(index); } @@ -9094,53 +9321,57 @@ inline void JSONSchema::set_enum_(int index, const char* value, // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::set_enum_(int index, absl::string_view value) { - _internal_mutable_enum_()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_enum_()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::add_enum_(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_enum_()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::add_enum_(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_enum_()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::add_enum_(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_enum_()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::add_enum_(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_enum_()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline void JSONSchema::add_enum_(absl::string_view value) { - _internal_mutable_enum_()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_enum_()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -JSONSchema::enum_() const { +inline const ::google::protobuf::RepeatedPtrField& +JSONSchema::enum_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) return _internal_enum_(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* JSONSchema::mutable_enum_() { +inline ::google::protobuf::RepeatedPtrField* +JSONSchema::mutable_enum_() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_enum_(); } -inline const std::string& JSONSchema::_internal_enum_(int index) const { - return _internal_enum_().Get(index); -} -inline std::string* JSONSchema::_internal_add_enum_() { - return _internal_mutable_enum_()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& JSONSchema::_internal_enum_() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.enum__; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* JSONSchema::_internal_mutable_enum_() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.enum__; } @@ -9151,25 +9382,26 @@ inline bool JSONSchema::has_field_configuration() const { return value; } inline void JSONSchema::clear_field_configuration() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.field_configuration_ != nullptr) _impl_.field_configuration_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& JSONSchema::_internal_field_configuration() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* p = _impl_.field_configuration_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_FieldConfiguration_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_FieldConfiguration_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& JSONSchema::field_configuration() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& JSONSchema::field_configuration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) return _internal_field_configuration(); } -inline void JSONSchema::unsafe_arena_set_allocated_field_configuration( - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* field_configuration) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.field_configuration_); +inline void JSONSchema::unsafe_arena_set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.field_configuration_); } - _impl_.field_configuration_ = field_configuration; - if (field_configuration) { + _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -9177,82 +9409,88 @@ inline void JSONSchema::unsafe_arena_set_allocated_field_configuration( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* JSONSchema::release_field_configuration() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* temp = _impl_.field_configuration_; + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* released = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* JSONSchema::unsafe_arena_release_field_configuration() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* temp = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* JSONSchema::_internal_mutable_field_configuration() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.field_configuration_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(GetArenaForAllocation()); - _impl_.field_configuration_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(GetArena()); + _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(p); } return _impl_.field_configuration_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* JSONSchema::mutable_field_configuration() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* JSONSchema::mutable_field_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* _msg = _internal_mutable_field_configuration(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) return _msg; } -inline void JSONSchema::set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* field_configuration) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void JSONSchema::set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.field_configuration_; + delete (_impl_.field_configuration_); } - if (field_configuration) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(field_configuration); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - field_configuration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, field_configuration, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.field_configuration_ = field_configuration; + + _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) } // map extensions = 48; inline int JSONSchema::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int JSONSchema::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -JSONSchema::_internal_extensions() const { +inline const ::google::protobuf::Map& JSONSchema::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -JSONSchema::extensions() const { +inline const ::google::protobuf::Map& JSONSchema::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -JSONSchema::_internal_mutable_extensions() { +inline ::google::protobuf::Map* JSONSchema::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -JSONSchema::mutable_extensions() { +inline ::google::protobuf::Map* JSONSchema::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions) return _internal_mutable_extensions(); } @@ -9263,46 +9501,49 @@ JSONSchema::mutable_extensions() { // string description = 2; inline void Tag::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& Tag::description() const { +inline const std::string& Tag::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void Tag::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) } -inline std::string* Tag::mutable_description() { +inline std::string* Tag::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) return _s; } inline const std::string& Tag::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void Tag::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* Tag::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* Tag::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) return _impl_.description_.Release(); } inline void Tag::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) @@ -9315,25 +9556,26 @@ inline bool Tag::has_external_docs() const { return value; } inline void Tag::clear_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Tag::_internal_external_docs() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Tag::external_docs() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Tag::external_docs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) return _internal_external_docs(); } -inline void Tag::unsafe_arena_set_allocated_external_docs( - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.external_docs_); +inline void Tag::unsafe_arena_set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.external_docs_); } - _impl_.external_docs_ = external_docs; - if (external_docs) { + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -9341,57 +9583,65 @@ inline void Tag::unsafe_arena_set_allocated_external_docs( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Tag::release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; + ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Tag::unsafe_arena_release_external_docs() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Tag::_internal_mutable_external_docs() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.external_docs_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArenaForAllocation()); - _impl_.external_docs_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(GetArena()); + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(p); } return _impl_.external_docs_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Tag::mutable_external_docs() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* Tag::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* _msg = _internal_mutable_external_docs(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) return _msg; } -inline void Tag::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Tag::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.external_docs_; + delete (_impl_.external_docs_); } - if (external_docs) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(external_docs); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - external_docs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, external_docs, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.external_docs_ = external_docs; + + _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) } @@ -9403,29 +9653,28 @@ inline void Tag::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapi // map security = 1; inline int SecurityDefinitions::_internal_security_size() const { - return _impl_.security_.size(); + return _internal_security().size(); } inline int SecurityDefinitions::security_size() const { return _internal_security_size(); } inline void SecurityDefinitions::clear_security() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.security_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >& -SecurityDefinitions::_internal_security() const { +inline const ::google::protobuf::Map& SecurityDefinitions::_internal_security() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.security_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >& -SecurityDefinitions::security() const { +inline const ::google::protobuf::Map& SecurityDefinitions::security() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security) return _internal_security(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >* -SecurityDefinitions::_internal_mutable_security() { +inline ::google::protobuf::Map* SecurityDefinitions::_internal_mutable_security() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.security_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >* -SecurityDefinitions::mutable_security() { +inline ::google::protobuf::Map* SecurityDefinitions::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security) return _internal_mutable_security(); } @@ -9438,6 +9687,7 @@ SecurityDefinitions::mutable_security() { // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; inline void SecurityScheme::clear_type() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_ = 0; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type SecurityScheme::type() const { @@ -9445,59 +9695,63 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type Secur return _internal_type(); } inline void SecurityScheme::set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value) { - _internal_set_type(value); + _internal_set_type(value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.type) } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type SecurityScheme::_internal_type() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type>(_impl_.type_); } inline void SecurityScheme::_internal_set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.type_ = value; } // string description = 2; inline void SecurityScheme::clear_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.description_.ClearToEmpty(); } -inline const std::string& SecurityScheme::description() const { +inline const std::string& SecurityScheme::description() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) return _internal_description(); } template inline PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_description(Arg_&& arg, Args_... args) { - ; - _impl_.description_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) } -inline std::string* SecurityScheme::mutable_description() { +inline std::string* SecurityScheme::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) return _s; } inline const std::string& SecurityScheme::_internal_description() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.description_.Get(); } inline void SecurityScheme::_internal_set_description(const std::string& value) { - ; - - - _impl_.description_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.Set(value, GetArena()); } inline std::string* SecurityScheme::_internal_mutable_description() { - ; - return _impl_.description_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.description_.Mutable( GetArena()); } inline std::string* SecurityScheme::release_description() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) return _impl_.description_.Release(); } inline void SecurityScheme::set_allocated_description(std::string* value) { - _impl_.description_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.description_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArenaForAllocation()); + _impl_.description_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) @@ -9505,46 +9759,49 @@ inline void SecurityScheme::set_allocated_description(std::string* value) { // string name = 3; inline void SecurityScheme::clear_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.name_.ClearToEmpty(); } -inline const std::string& SecurityScheme::name() const { +inline const std::string& SecurityScheme::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_name(Arg_&& arg, Args_... args) { - ; - _impl_.name_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) } -inline std::string* SecurityScheme::mutable_name() { +inline std::string* SecurityScheme::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) return _s; } inline const std::string& SecurityScheme::_internal_name() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.name_.Get(); } inline void SecurityScheme::_internal_set_name(const std::string& value) { - ; - - - _impl_.name_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.Set(value, GetArena()); } inline std::string* SecurityScheme::_internal_mutable_name() { - ; - return _impl_.name_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.name_.Mutable( GetArena()); } inline std::string* SecurityScheme::release_name() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) return _impl_.name_.Release(); } inline void SecurityScheme::set_allocated_name(std::string* value) { - _impl_.name_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.name_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) @@ -9552,6 +9809,7 @@ inline void SecurityScheme::set_allocated_name(std::string* value) { // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; inline void SecurityScheme::clear_in() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.in_ = 0; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In SecurityScheme::in() const { @@ -9559,19 +9817,21 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In Securit return _internal_in(); } inline void SecurityScheme::set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value) { - _internal_set_in(value); + _internal_set_in(value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.in) } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In SecurityScheme::_internal_in() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In>(_impl_.in_); } inline void SecurityScheme::_internal_set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.in_ = value; } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; inline void SecurityScheme::clear_flow() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.flow_ = 0; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow SecurityScheme::flow() const { @@ -9579,59 +9839,63 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow Secur return _internal_flow(); } inline void SecurityScheme::set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value) { - _internal_set_flow(value); + _internal_set_flow(value); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.flow) } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow SecurityScheme::_internal_flow() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow>(_impl_.flow_); } inline void SecurityScheme::_internal_set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value) { - ; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.flow_ = value; } // string authorization_url = 6; inline void SecurityScheme::clear_authorization_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.authorization_url_.ClearToEmpty(); } -inline const std::string& SecurityScheme::authorization_url() const { +inline const std::string& SecurityScheme::authorization_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) return _internal_authorization_url(); } template inline PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_authorization_url(Arg_&& arg, Args_... args) { - ; - _impl_.authorization_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) } -inline std::string* SecurityScheme::mutable_authorization_url() { +inline std::string* SecurityScheme::mutable_authorization_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_authorization_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) return _s; } inline const std::string& SecurityScheme::_internal_authorization_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.authorization_url_.Get(); } inline void SecurityScheme::_internal_set_authorization_url(const std::string& value) { - ; - - - _impl_.authorization_url_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_url_.Set(value, GetArena()); } inline std::string* SecurityScheme::_internal_mutable_authorization_url() { - ; - return _impl_.authorization_url_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.authorization_url_.Mutable( GetArena()); } inline std::string* SecurityScheme::release_authorization_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) return _impl_.authorization_url_.Release(); } inline void SecurityScheme::set_allocated_authorization_url(std::string* value) { - _impl_.authorization_url_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.authorization_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.authorization_url_.IsDefault()) { - _impl_.authorization_url_.Set("", GetArenaForAllocation()); + _impl_.authorization_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) @@ -9639,46 +9903,49 @@ inline void SecurityScheme::set_allocated_authorization_url(std::string* value) // string token_url = 7; inline void SecurityScheme::clear_token_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.token_url_.ClearToEmpty(); } -inline const std::string& SecurityScheme::token_url() const { +inline const std::string& SecurityScheme::token_url() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) return _internal_token_url(); } template inline PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_token_url(Arg_&& arg, Args_... args) { - ; - _impl_.token_url_.Set(static_cast(arg), args..., GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) } -inline std::string* SecurityScheme::mutable_token_url() { +inline std::string* SecurityScheme::mutable_token_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_token_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) return _s; } inline const std::string& SecurityScheme::_internal_token_url() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.token_url_.Get(); } inline void SecurityScheme::_internal_set_token_url(const std::string& value) { - ; - - - _impl_.token_url_.Set(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_url_.Set(value, GetArena()); } inline std::string* SecurityScheme::_internal_mutable_token_url() { - ; - return _impl_.token_url_.Mutable( GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + return _impl_.token_url_.Mutable( GetArena()); } inline std::string* SecurityScheme::release_token_url() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) return _impl_.token_url_.Release(); } inline void SecurityScheme::set_allocated_token_url(std::string* value) { - _impl_.token_url_.SetAllocated(value, GetArenaForAllocation()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.token_url_.SetAllocated(value, GetArena()); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING if (_impl_.token_url_.IsDefault()) { - _impl_.token_url_.Set("", GetArenaForAllocation()); + _impl_.token_url_.Set("", GetArena()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) @@ -9691,25 +9958,26 @@ inline bool SecurityScheme::has_scopes() const { return value; } inline void SecurityScheme::clear_scopes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.scopes_ != nullptr) _impl_.scopes_->Clear(); _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& SecurityScheme::_internal_scopes() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* p = _impl_.scopes_; - return p != nullptr ? *p : reinterpret_cast( - ::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_default_instance_); } -inline const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& SecurityScheme::scopes() const { +inline const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& SecurityScheme::scopes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) return _internal_scopes(); } -inline void SecurityScheme::unsafe_arena_set_allocated_scopes( - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.scopes_); +inline void SecurityScheme::unsafe_arena_set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.scopes_); } - _impl_.scopes_ = scopes; - if (scopes) { + _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; @@ -9717,82 +9985,88 @@ inline void SecurityScheme::unsafe_arena_set_allocated_scopes( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* SecurityScheme::release_scopes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_._has_bits_[0] &= ~0x00000001u; - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* temp = _impl_.scopes_; + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* released = _impl_.scopes_; _impl_.scopes_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); } #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* SecurityScheme::unsafe_arena_release_scopes() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) + _impl_._has_bits_[0] &= ~0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* temp = _impl_.scopes_; _impl_.scopes_ = nullptr; return temp; } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* SecurityScheme::_internal_mutable_scopes() { - _impl_._has_bits_[0] |= 0x00000001u; + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (_impl_.scopes_ == nullptr) { - auto* p = CreateMaybeMessage<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(GetArenaForAllocation()); - _impl_.scopes_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(GetArena()); + _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(p); } return _impl_.scopes_; } -inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* SecurityScheme::mutable_scopes() { +inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* SecurityScheme::mutable_scopes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000001u; ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* _msg = _internal_mutable_scopes(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) return _msg; } -inline void SecurityScheme::set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* scopes) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SecurityScheme::set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); if (message_arena == nullptr) { - delete _impl_.scopes_; + delete (_impl_.scopes_); } - if (scopes) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(scopes); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); if (message_arena != submessage_arena) { - scopes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, scopes, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.scopes_ = scopes; + + _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); // @@protoc_insertion_point(field_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) } // map extensions = 9; inline int SecurityScheme::_internal_extensions_size() const { - return _impl_.extensions_.size(); + return _internal_extensions().size(); } inline int SecurityScheme::extensions_size() const { return _internal_extensions_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -SecurityScheme::_internal_extensions() const { +inline const ::google::protobuf::Map& SecurityScheme::_internal_extensions() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.extensions_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >& -SecurityScheme::extensions() const { +inline const ::google::protobuf::Map& SecurityScheme::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions) return _internal_extensions(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -SecurityScheme::_internal_mutable_extensions() { +inline ::google::protobuf::Map* SecurityScheme::_internal_mutable_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.extensions_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >* -SecurityScheme::mutable_extensions() { +inline ::google::protobuf::Map* SecurityScheme::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions) return _internal_mutable_extensions(); } @@ -9803,24 +10077,29 @@ SecurityScheme::mutable_extensions() { // repeated string scope = 1; inline int SecurityRequirement_SecurityRequirementValue::_internal_scope_size() const { - return _impl_.scope_.size(); + return _internal_scope().size(); } inline int SecurityRequirement_SecurityRequirementValue::scope_size() const { return _internal_scope_size(); } inline void SecurityRequirement_SecurityRequirementValue::clear_scope() { - _internal_mutable_scope()->Clear(); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.scope_.Clear(); } -inline std::string* SecurityRequirement_SecurityRequirementValue::add_scope() { - std::string* _s = _internal_add_scope(); +inline std::string* SecurityRequirement_SecurityRequirementValue::add_scope() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + std::string* _s = _internal_mutable_scope()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) return _s; } -inline const std::string& SecurityRequirement_SecurityRequirementValue::scope(int index) const { +inline const std::string& SecurityRequirement_SecurityRequirementValue::scope(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) - return _internal_scope(index); + return _internal_scope().Get(index); } -inline std::string* SecurityRequirement_SecurityRequirementValue::mutable_scope(int index) { +inline std::string* SecurityRequirement_SecurityRequirementValue::mutable_scope(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) return _internal_mutable_scope()->Mutable(index); } @@ -9844,53 +10123,57 @@ inline void SecurityRequirement_SecurityRequirementValue::set_scope(int index, c // @@protoc_insertion_point(field_set_pointer:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::set_scope(int index, absl::string_view value) { - _internal_mutable_scope()->Mutable(index)->assign(value.data(), - value.size()); + _internal_mutable_scope()->Mutable(index)->assign( + value.data(), value.size()); // @@protoc_insertion_point(field_set_string_piece:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::add_scope(const std::string& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_scope()->Add()->assign(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::add_scope(std::string&& value) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_scope()->Add(std::move(value)); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::add_scope(const char* value) { ABSL_DCHECK(value != nullptr); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_scope()->Add()->assign(value); // @@protoc_insertion_point(field_add_char:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::add_scope(const char* value, std::size_t size) { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _internal_mutable_scope()->Add()->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline void SecurityRequirement_SecurityRequirementValue::add_scope(absl::string_view value) { - _internal_mutable_scope()->Add()->assign(value.data(), value.size()); + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _internal_mutable_scope()->Add()->assign(value.data(), + value.size()); // @@protoc_insertion_point(field_add_string_piece:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SecurityRequirement_SecurityRequirementValue::scope() const { +inline const ::google::protobuf::RepeatedPtrField& +SecurityRequirement_SecurityRequirementValue::scope() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) return _internal_scope(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SecurityRequirement_SecurityRequirementValue::mutable_scope() { +inline ::google::protobuf::RepeatedPtrField* +SecurityRequirement_SecurityRequirementValue::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _internal_mutable_scope(); } -inline const std::string& SecurityRequirement_SecurityRequirementValue::_internal_scope(int index) const { - return _internal_scope().Get(index); -} -inline std::string* SecurityRequirement_SecurityRequirementValue::_internal_add_scope() { - return _internal_mutable_scope()->Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField& SecurityRequirement_SecurityRequirementValue::_internal_scope() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.scope_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField* SecurityRequirement_SecurityRequirementValue::_internal_mutable_scope() { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return &_impl_.scope_; } @@ -9902,29 +10185,28 @@ SecurityRequirement_SecurityRequirementValue::_internal_mutable_scope() { // map security_requirement = 1; inline int SecurityRequirement::_internal_security_requirement_size() const { - return _impl_.security_requirement_.size(); + return _internal_security_requirement().size(); } inline int SecurityRequirement::security_requirement_size() const { return _internal_security_requirement_size(); } inline void SecurityRequirement::clear_security_requirement() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.security_requirement_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >& -SecurityRequirement::_internal_security_requirement() const { +inline const ::google::protobuf::Map& SecurityRequirement::_internal_security_requirement() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.security_requirement_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >& -SecurityRequirement::security_requirement() const { +inline const ::google::protobuf::Map& SecurityRequirement::security_requirement() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement) return _internal_security_requirement(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >* -SecurityRequirement::_internal_mutable_security_requirement() { +inline ::google::protobuf::Map* SecurityRequirement::_internal_mutable_security_requirement() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.security_requirement_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >* -SecurityRequirement::mutable_security_requirement() { +inline ::google::protobuf::Map* SecurityRequirement::mutable_security_requirement() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement) return _internal_mutable_security_requirement(); } @@ -9937,29 +10219,28 @@ SecurityRequirement::mutable_security_requirement() { // map scope = 1; inline int Scopes::_internal_scope_size() const { - return _impl_.scope_.size(); + return _internal_scope().size(); } inline int Scopes::scope_size() const { return _internal_scope_size(); } inline void Scopes::clear_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.scope_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -Scopes::_internal_scope() const { +inline const ::google::protobuf::Map& Scopes::_internal_scope() const { + PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); return _impl_.scope_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -Scopes::scope() const { +inline const ::google::protobuf::Map& Scopes::scope() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope) return _internal_scope(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -Scopes::_internal_mutable_scope() { +inline ::google::protobuf::Map* Scopes::_internal_mutable_scope() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); return _impl_.scope_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -Scopes::mutable_scope() { +inline ::google::protobuf::Map* Scopes::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope) return _internal_mutable_scope(); } @@ -9975,7 +10256,8 @@ Scopes::mutable_scope() { } // namespace grpc -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template <> struct is_proto_enum<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes> : std::true_type {}; @@ -10008,7 +10290,8 @@ inline const EnumDescriptor* GetEnumDescriptor<::grpc::gateway::protoc_gen_opena return ::grpc::gateway::protoc_gen_openapiv2::options::Scheme_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/sdks/cpp/src/agones/sdk.pb.cc b/sdks/cpp/src/agones/sdk.pb.cc index 2ccd379980..915421ea71 100644 --- a/sdks/cpp/src/agones/sdk.pb.cc +++ b/sdks/cpp/src/agones/sdk.pb.cc @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: sdk.proto +// Protobuf C++ Version: 5.26.1 #include "sdk.pb.h" @@ -26,41 +27,32 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace agones { namespace dev { namespace sdk { -template -PROTOBUF_CONSTEXPR Empty::Empty( - ::_pbi::ConstantInitialized) {} -struct EmptyDefaultTypeInternal { - PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EmptyDefaultTypeInternal() {} - union { - Empty _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; -template -PROTOBUF_CONSTEXPR KeyValue::KeyValue( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.key_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - , /*decltype(_impl_.value_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr KeyValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : key_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR KeyValue::KeyValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct KeyValueDefaultTypeInternal { PROTOBUF_CONSTEXPR KeyValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~KeyValueDefaultTypeInternal() {} @@ -71,98 +63,125 @@ struct KeyValueDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_; -template -PROTOBUF_CONSTEXPR Duration::Duration( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.seconds_)*/ ::int64_t{0} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR DurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DurationDefaultTypeInternal() {} +inline constexpr GameServer_Status_Port::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + port_{0}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_Status_PortDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_PortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_PortDefaultTypeInternal() {} union { - Duration _instance; + GameServer_Status_Port _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DurationDefaultTypeInternal _Duration_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; + +inline constexpr GameServer_Status_PlayerStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : ids_{}, + count_{::int64_t{0}}, + capacity_{::int64_t{0}}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_Status_PlayerStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_PlayerStatusDefaultTypeInternal() {} union { - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _instance; + GameServer_Status_PlayerStatus _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PlayerStatusDefaultTypeInternal _GameServer_Status_PlayerStatus_default_instance_; + +inline constexpr GameServer_Status_ListStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : values_{}, + capacity_{::int64_t{0}}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_Status_ListStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_ListStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_ListStatusDefaultTypeInternal() {} union { - GameServer_ObjectMeta_LabelsEntry_DoNotUse _instance; + GameServer_Status_ListStatus _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta::GameServer_ObjectMeta( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.annotations_)*/{} - , /*decltype(_impl_.labels_)*/{} - , /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.namespace__)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; - , /*decltype(_impl_.uid_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr GameServer_Status_CounterStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : count_{::int64_t{0}}, + capacity_{::int64_t{0}}, + _cached_size_{0} {} - , /*decltype(_impl_.resource_version_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.generation_)*/ ::int64_t{0} +template +PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_Status_CounterStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_CounterStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_CounterStatusDefaultTypeInternal() {} + union { + GameServer_Status_CounterStatus _instance; + }; +}; - , /*decltype(_impl_.creation_timestamp_)*/ ::int64_t{0} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; - , /*decltype(_impl_.deletion_timestamp_)*/ ::int64_t{0} +inline constexpr GameServer_Status_Address::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_ObjectMetaDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMetaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMetaDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_Status_AddressDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_AddressDefaultTypeInternal() {} union { - GameServer_ObjectMeta _instance; + GameServer_Status_Address _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Spec_Health::GameServer_Spec_Health( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.disabled_)*/ false - - , /*decltype(_impl_.period_seconds_)*/ 0 - - , /*decltype(_impl_.failure_threshold_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; - , /*decltype(_impl_.initial_delay_seconds_)*/ 0 +inline constexpr GameServer_Spec_Health::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : disabled_{false}, + period_seconds_{0}, + failure_threshold_{0}, + initial_delay_seconds_{0}, + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct GameServer_Spec_HealthDefaultTypeInternal { PROTOBUF_CONSTEXPR GameServer_Spec_HealthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GameServer_Spec_HealthDefaultTypeInternal() {} @@ -173,121 +192,75 @@ struct GameServer_Spec_HealthDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Spec::GameServer_Spec( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.health_)*/nullptr} {} -struct GameServer_SpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_SpecDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_SpecDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() {} union { - GameServer_Spec _instance; + GameServer_ObjectMeta_LabelsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Status_Address::GameServer_Status_Address( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.type_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.address_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_Status_AddressDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_AddressDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} union { - GameServer_Status_Address _instance; + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Status_Port::GameServer_Status_Port( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.port_)*/ 0 - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_Status_PortDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_PortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_PortDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) {} +struct EmptyDefaultTypeInternal { + PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EmptyDefaultTypeInternal() {} union { - GameServer_Status_Port _instance; + Empty _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.ids_)*/{} - , /*decltype(_impl_.count_)*/ ::int64_t{0} - - , /*decltype(_impl_.capacity_)*/ ::int64_t{0} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_Status_PlayerStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_PlayerStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_PlayerStatusDefaultTypeInternal() {} - union { - GameServer_Status_PlayerStatus _instance; - }; -}; +inline constexpr Duration::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : seconds_{::int64_t{0}}, + _cached_size_{0} {} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PlayerStatusDefaultTypeInternal _GameServer_Status_PlayerStatus_default_instance_; template -PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.count_)*/ ::int64_t{0} - - , /*decltype(_impl_.capacity_)*/ ::int64_t{0} - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_Status_CounterStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_CounterStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_CounterStatusDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Duration::Duration(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct DurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR DurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DurationDefaultTypeInternal() {} union { - GameServer_Status_CounterStatus _instance; + Duration _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Status_ListStatus::GameServer_Status_ListStatus( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.values_)*/{} - , /*decltype(_impl_.capacity_)*/ ::int64_t{0} - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct GameServer_Status_ListStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_ListStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_ListStatusDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DurationDefaultTypeInternal _Duration_default_instance_; + template +PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() {} union { - GameServer_Status_ListStatus _instance; + GameServer_Status_ListsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal _GameServer_Status_ListsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::_pbi::ConstantInitialized) {} struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal { PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() {} @@ -298,37 +271,79 @@ struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal _GameServer_Status_CountersEntry_DoNotUse_default_instance_; + +inline constexpr GameServer_Spec::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + health_{nullptr} {} + template -PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR GameServer_Spec::GameServer_Spec(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_SpecDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_SpecDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_SpecDefaultTypeInternal() {} union { - GameServer_Status_ListsEntry_DoNotUse _instance; + GameServer_Spec _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal _GameServer_Status_ListsEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; + +inline constexpr GameServer_ObjectMeta::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : annotations_{}, + labels_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + namespace__( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + uid_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + resource_version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + generation_{::int64_t{0}}, + creation_timestamp_{::int64_t{0}}, + deletion_timestamp_{::int64_t{0}}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR GameServer_Status::GameServer_Status( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.ports_)*/{} - , /*decltype(_impl_.counters_)*/{} - , /*decltype(_impl_.lists_)*/{} - , /*decltype(_impl_.addresses_)*/{} - , /*decltype(_impl_.state_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +PROTOBUF_CONSTEXPR GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct GameServer_ObjectMetaDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMetaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMetaDefaultTypeInternal() {} + union { + GameServer_ObjectMeta _instance; + }; +}; - , /*decltype(_impl_.address_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; - , /*decltype(_impl_.players_)*/nullptr} {} +inline constexpr GameServer_Status::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + ports_{}, + counters_{}, + lists_{}, + addresses_{}, + state_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + players_{nullptr} {} + +template +PROTOBUF_CONSTEXPR GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct GameServer_StatusDefaultTypeInternal { PROTOBUF_CONSTEXPR GameServer_StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GameServer_StatusDefaultTypeInternal() {} @@ -339,14 +354,17 @@ struct GameServer_StatusDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; + +inline constexpr GameServer::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + object_meta_{nullptr}, + spec_{nullptr}, + status_{nullptr} {} + template -PROTOBUF_CONSTEXPR GameServer::GameServer( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.object_meta_)*/nullptr - , /*decltype(_impl_.spec_)*/nullptr - , /*decltype(_impl_.status_)*/nullptr} {} +PROTOBUF_CONSTEXPR GameServer::GameServer(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct GameServerDefaultTypeInternal { PROTOBUF_CONSTEXPR GameServerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~GameServerDefaultTypeInternal() {} @@ -365,232 +383,232 @@ static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_sdk_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_sdk_2eproto = nullptr; -const ::uint32_t TableStruct_sdk_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Empty, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _impl_.seconds_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.namespace__), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.uid_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.resource_version_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.generation_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.creation_timestamp_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.deletion_timestamp_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.disabled_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.period_seconds_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.failure_threshold_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.initial_delay_seconds_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_.health_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.address_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.port_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.capacity_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.capacity_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.capacity_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.players_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.object_meta_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.spec_), - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.status_), - 0, - 1, - 2, +const ::uint32_t + TableStruct_sdk_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Empty, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::KeyValue, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::Duration, _impl_.seconds_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.namespace__), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.uid_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.resource_version_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.generation_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.creation_timestamp_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.deletion_timestamp_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.disabled_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.period_seconds_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.failure_threshold_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_.initial_delay_seconds_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec, _impl_.health_), + 0, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Address, _impl_.address_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_Port, _impl_.port_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.capacity_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.count_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.capacity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.capacity_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.state_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.players_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_), + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.object_meta_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.spec_), + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_.status_), + 0, + 1, + 2, }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::agones::dev::sdk::Empty)}, - { 8, -1, -1, sizeof(::agones::dev::sdk::KeyValue)}, - { 18, -1, -1, sizeof(::agones::dev::sdk::Duration)}, - { 27, 37, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)}, - { 39, 49, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse)}, - { 51, -1, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta)}, - { 68, -1, -1, sizeof(::agones::dev::sdk::GameServer_Spec_Health)}, - { 80, 89, -1, sizeof(::agones::dev::sdk::GameServer_Spec)}, - { 90, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_Address)}, - { 100, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_Port)}, - { 110, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_PlayerStatus)}, - { 121, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_CounterStatus)}, - { 131, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_ListStatus)}, - { 141, 151, -1, sizeof(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse)}, - { 153, 163, -1, sizeof(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse)}, - { 165, 180, -1, sizeof(::agones::dev::sdk::GameServer_Status)}, - { 187, 198, -1, sizeof(::agones::dev::sdk::GameServer)}, + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::agones::dev::sdk::Empty)}, + {8, -1, -1, sizeof(::agones::dev::sdk::KeyValue)}, + {18, -1, -1, sizeof(::agones::dev::sdk::Duration)}, + {27, 37, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)}, + {39, 49, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse)}, + {51, -1, -1, sizeof(::agones::dev::sdk::GameServer_ObjectMeta)}, + {68, -1, -1, sizeof(::agones::dev::sdk::GameServer_Spec_Health)}, + {80, 89, -1, sizeof(::agones::dev::sdk::GameServer_Spec)}, + {90, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_Address)}, + {100, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_Port)}, + {110, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_PlayerStatus)}, + {121, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_CounterStatus)}, + {131, -1, -1, sizeof(::agones::dev::sdk::GameServer_Status_ListStatus)}, + {141, 151, -1, sizeof(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse)}, + {153, 163, -1, sizeof(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse)}, + {165, 180, -1, sizeof(::agones::dev::sdk::GameServer_Status)}, + {187, 198, -1, sizeof(::agones::dev::sdk::GameServer)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::agones::dev::sdk::_Empty_default_instance_._instance, &::agones::dev::sdk::_KeyValue_default_instance_._instance, @@ -610,7 +628,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::agones::dev::sdk::_GameServer_Status_default_instance_._instance, &::agones::dev::sdk::_GameServer_default_instance_._instance, }; -const char descriptor_table_protodef_sdk_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\tsdk.proto\022\016agones.dev.sdk\032\034google/api/" "annotations.proto\032.protoc-gen-openapiv2/" "options/annotations.proto\"\007\n\005Empty\"&\n\010Ke" @@ -715,9 +734,6 @@ const ::_pbi::DescriptorTable descriptor_table_sdk_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_sdk_2eproto_getter() { return &descriptor_table_sdk_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_sdk_2eproto(&descriptor_table_sdk_2eproto); namespace agones { namespace dev { namespace sdk { @@ -727,14 +743,19 @@ class Empty::_Internal { public: }; -Empty::Empty(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena) { +Empty::Empty(::google::protobuf::Arena* arena) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Empty) } -Empty::Empty(const Empty& from) - : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { - Empty* const _this = this; (void)_this; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +Empty::Empty( + ::google::protobuf::Arena* arena, + const Empty& from) + : ::google::protobuf::internal::ZeroFieldsBase(arena) { + Empty* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Empty) } @@ -742,22 +763,14 @@ Empty::Empty(const Empty& from) -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Empty::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, - ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Empty::GetClassData() const { return &_class_data_; } - - - -::PROTOBUF_NAMESPACE_ID::Metadata Empty::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[0]); +::google::protobuf::Metadata Empty::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[0]); } // =================================================================== @@ -765,164 +778,155 @@ class KeyValue::_Internal { public: }; -KeyValue::KeyValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +KeyValue::KeyValue(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.KeyValue) } -KeyValue::KeyValue(const KeyValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - KeyValue* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.key_) {} - - , decltype(_impl_.value_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : key_(arena, from.key_), + value_(arena, from.value_), + _cached_size_{0} {} + +KeyValue::KeyValue( + ::google::protobuf::Arena* arena, + const KeyValue& from) + : ::google::protobuf::Message(arena) { + KeyValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key().empty()) { - _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation()); - } - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_value().empty()) { - _this->_impl_.value_.Set(from._internal_value(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.KeyValue) } +inline PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : key_(arena), + value_(arena), + _cached_size_{0} {} inline void KeyValue::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.key_) {} - - , decltype(_impl_.value_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - KeyValue::~KeyValue() { // @@protoc_insertion_point(destructor:agones.dev.sdk.KeyValue) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void KeyValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.key_.Destroy(); _impl_.value_.Destroy(); -} - -void KeyValue::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void KeyValue::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +KeyValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), + false, + }, + &KeyValue::MergeImpl, + &KeyValue::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void KeyValue::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.KeyValue) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.key_.ClearToEmpty(); _impl_.value_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* KeyValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_key(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.KeyValue.key")); - } else { - goto handle_unusual; - } - continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.KeyValue.value")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* KeyValue::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 40, 2> KeyValue::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_KeyValue_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::KeyValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\3\5\0\0\0\0\0" + "agones.dev.sdk.KeyValue" + "key" + "value" + }}, +}; + ::uint8_t* KeyValue::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.KeyValue) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string key = 1; if (!this->_internal_key().empty()) { const std::string& _s = this->_internal_key(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.key"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string value = 2; if (!this->_internal_value().empty()) { const std::string& _s = this->_internal_value(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.value"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.KeyValue.value"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.KeyValue) return target; @@ -938,27 +942,21 @@ ::size_t KeyValue::ByteSizeLong() const { // string key = 1; if (!this->_internal_key().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_key()); } // string value = 2; if (!this->_internal_value().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_value()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KeyValue::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - KeyValue::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KeyValue::GetClassData() const { return &_class_data_; } - -void KeyValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.KeyValue) @@ -972,7 +970,7 @@ void KeyValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void KeyValue::CopyFrom(const KeyValue& from) { @@ -982,25 +980,23 @@ void KeyValue::CopyFrom(const KeyValue& from) { MergeFrom(from); } -bool KeyValue::IsInitialized() const { +PROTOBUF_NOINLINE bool KeyValue::IsInitialized() const { return true; } -void KeyValue::InternalSwap(KeyValue* other) { +void KeyValue::InternalSwap(KeyValue* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena, - &other->_impl_.key_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, lhs_arena, - &other->_impl_.value_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, &other->_impl_.key_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[1]); +::google::protobuf::Metadata KeyValue::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[1]); } // =================================================================== @@ -1008,108 +1004,118 @@ class Duration::_Internal { public: }; -Duration::Duration(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Duration::Duration(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.Duration) } -Duration::Duration(const Duration& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Duration) +Duration::Duration( + ::google::protobuf::Arena* arena, const Duration& from) + : Duration(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE Duration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void Duration::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.seconds_) { ::int64_t{0} } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.seconds_ = {}; } - Duration::~Duration() { // @@protoc_insertion_point(destructor:agones.dev.sdk.Duration) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Duration::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void Duration::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Duration::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Duration::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), + false, + }, + &Duration::MergeImpl, + &Duration::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Duration::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.Duration) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.seconds_ = ::int64_t{0}; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Duration::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 seconds = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Duration::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> Duration::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Duration_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::Duration>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // int64 seconds = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Duration, _impl_.seconds_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 seconds = 1; + {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* Duration::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.Duration) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // int64 seconds = 1; if (this->_internal_seconds() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 1, this->_internal_seconds(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<1>( + stream, this->_internal_seconds(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.Duration) return target; @@ -1132,14 +1138,8 @@ ::size_t Duration::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Duration::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Duration::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Duration::GetClassData() const { return &_class_data_; } - -void Duration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Duration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Duration) @@ -1148,9 +1148,9 @@ void Duration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO (void) cached_has_bits; if (from._internal_seconds() != 0) { - _this->_internal_set_seconds(from._internal_seconds()); + _this->_impl_.seconds_ = from._impl_.seconds_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Duration::CopyFrom(const Duration& from) { @@ -1160,47 +1160,40 @@ void Duration::CopyFrom(const Duration& from) { MergeFrom(from); } -bool Duration::IsInitialized() const { +PROTOBUF_NOINLINE bool Duration::IsInitialized() const { return true; } -void Duration::InternalSwap(Duration* other) { +void Duration::InternalSwap(Duration* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - - swap(_impl_.seconds_, other->_impl_.seconds_); + swap(_impl_.seconds_, other->_impl_.seconds_); } -::PROTOBUF_NAMESPACE_ID::Metadata Duration::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[2]); +::google::protobuf::Metadata Duration::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[2]); } // =================================================================== GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() {} -GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeFrom(const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[3]); +::google::protobuf::Metadata GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[3]); } // =================================================================== GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() {} -GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeFrom(const GameServer_ObjectMeta_LabelsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[4]); +::google::protobuf::Metadata GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[4]); } // =================================================================== @@ -1208,134 +1201,92 @@ class GameServer_ObjectMeta::_Internal { public: }; -GameServer_ObjectMeta::GameServer_ObjectMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.ObjectMeta) } -GameServer_ObjectMeta::GameServer_ObjectMeta(const GameServer_ObjectMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_ObjectMeta* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.annotations_)*/{} - , /*decltype(_impl_.labels_)*/{} - , decltype(_impl_.name_) {} - - , decltype(_impl_.namespace__) {} - - , decltype(_impl_.uid_) {} - - , decltype(_impl_.resource_version_) {} - - , decltype(_impl_.generation_) {} - - , decltype(_impl_.creation_timestamp_) {} - - , decltype(_impl_.deletion_timestamp_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : annotations_{visibility, arena, from.annotations_}, + labels_{visibility, arena, from.labels_}, + name_(arena, from.name_), + namespace__(arena, from.namespace__), + uid_(arena, from.uid_), + resource_version_(arena, from.resource_version_), + _cached_size_{0} {} + +GameServer_ObjectMeta::GameServer_ObjectMeta( + ::google::protobuf::Arena* arena, + const GameServer_ObjectMeta& from) + : ::google::protobuf::Message(arena) { + GameServer_ObjectMeta* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, generation_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, generation_), + offsetof(Impl_, deletion_timestamp_) - + offsetof(Impl_, generation_) + + sizeof(Impl_::deletion_timestamp_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); - _this->_impl_.labels_.MergeFrom(from._impl_.labels_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.namespace__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.namespace__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_namespace_().empty()) { - _this->_impl_.namespace__.Set(from._internal_namespace_(), _this->GetArenaForAllocation()); - } - _impl_.uid_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uid_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_uid().empty()) { - _this->_impl_.uid_.Set(from._internal_uid(), _this->GetArenaForAllocation()); - } - _impl_.resource_version_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.resource_version_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_resource_version().empty()) { - _this->_impl_.resource_version_.Set(from._internal_resource_version(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.generation_, &from._impl_.generation_, - static_cast<::size_t>(reinterpret_cast(&_impl_.deletion_timestamp_) - - reinterpret_cast(&_impl_.generation_)) + sizeof(_impl_.deletion_timestamp_)); // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.ObjectMeta) } +inline PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : annotations_{visibility, arena}, + labels_{visibility, arena}, + name_(arena), + namespace__(arena), + uid_(arena), + resource_version_(arena), + _cached_size_{0} {} inline void GameServer_ObjectMeta::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_.annotations_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.labels_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.name_) {} - - , decltype(_impl_.namespace__) {} - - , decltype(_impl_.uid_) {} - - , decltype(_impl_.resource_version_) {} - - , decltype(_impl_.generation_) { ::int64_t{0} } - - , decltype(_impl_.creation_timestamp_) { ::int64_t{0} } - - , decltype(_impl_.deletion_timestamp_) { ::int64_t{0} } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.namespace__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.namespace__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uid_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uid_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.resource_version_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.resource_version_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, generation_), + 0, + offsetof(Impl_, deletion_timestamp_) - + offsetof(Impl_, generation_) + + sizeof(Impl_::deletion_timestamp_)); } - GameServer_ObjectMeta::~GameServer_ObjectMeta() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.ObjectMeta) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_ObjectMeta::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.annotations_.~MapField(); - _impl_.labels_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.namespace__.Destroy(); _impl_.uid_.Destroy(); _impl_.resource_version_.Destroy(); -} - -void GameServer_ObjectMeta::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_ObjectMeta::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_ObjectMeta::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), + false, + }, + &GameServer_ObjectMeta::MergeImpl, + &GameServer_ObjectMeta::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.ObjectMeta) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1349,255 +1300,237 @@ void GameServer_ObjectMeta::Clear() { ::memset(&_impl_.generation_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deletion_timestamp_) - reinterpret_cast(&_impl_.generation_)) + sizeof(_impl_.deletion_timestamp_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_ObjectMeta::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.ObjectMeta.name")); - } else { - goto handle_unusual; - } - continue; - // string namespace = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_namespace_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.ObjectMeta.namespace")); - } else { - goto handle_unusual; - } - continue; - // string uid = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_uid(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.ObjectMeta.uid")); - } else { - goto handle_unusual; - } - continue; - // string resource_version = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_resource_version(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.ObjectMeta.resource_version")); - } else { - goto handle_unusual; - } - continue; - // int64 generation = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _impl_.generation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int64 creation_timestamp = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _impl_.creation_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int64 deletion_timestamp = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) { - _impl_.deletion_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // map annotations = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.annotations_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map labels = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.labels_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_ObjectMeta::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 9, 2, 102, 2> GameServer_ObjectMeta::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 9, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GameServer_ObjectMeta_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, + // string namespace = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, + // string uid = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, + // string resource_version = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, + // int64 generation = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 63>(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, + // int64 creation_timestamp = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, + // int64 deletion_timestamp = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 63>(), + {56, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string namespace = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string uid = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string resource_version = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 generation = 5; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // int64 creation_timestamp = 6; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // int64 deletion_timestamp = 7; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // map annotations = 8; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map labels = 9; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), 0, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(GameServer_ObjectMeta()._impl_.annotations_)>( + 1, 0, 0, 9, + 9)}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(GameServer_ObjectMeta()._impl_.labels_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\44\4\11\3\20\0\0\0\13\6\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.ObjectMeta" + "name" + "namespace" + "uid" + "resource_version" + "annotations" + "labels" + }}, +}; + ::uint8_t* GameServer_ObjectMeta::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.ObjectMeta) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string namespace = 2; if (!this->_internal_namespace_().empty()) { const std::string& _s = this->_internal_namespace_(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.namespace"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.namespace"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string uid = 3; if (!this->_internal_uid().empty()) { const std::string& _s = this->_internal_uid(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.uid"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.uid"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string resource_version = 4; if (!this->_internal_resource_version().empty()) { const std::string& _s = this->_internal_resource_version(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.resource_version"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.resource_version"); target = stream->WriteStringMaybeAliased(4, _s, target); } // int64 generation = 5; if (this->_internal_generation() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 5, this->_internal_generation(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<5>( + stream, this->_internal_generation(), target); } // int64 creation_timestamp = 6; if (this->_internal_creation_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 6, this->_internal_creation_timestamp(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<6>( + stream, this->_internal_creation_timestamp(), target); } // int64 deletion_timestamp = 7; if (this->_internal_deletion_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 7, this->_internal_deletion_timestamp(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<7>( + stream, this->_internal_deletion_timestamp(), target); } // map annotations = 8; - if (!this->_internal_annotations().empty()) { - using MapType = ::_pb::Map; - using WireHelper = GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_annotations(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_annotations().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_annotations(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 8, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 8, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); } } } // map labels = 9; - if (!this->_internal_labels().empty()) { - using MapType = ::_pb::Map; - using WireHelper = GameServer_ObjectMeta_LabelsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_labels(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_labels().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_labels(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.ObjectMeta) return target; @@ -1612,44 +1545,40 @@ ::size_t GameServer_ObjectMeta::ByteSizeLong() const { (void) cached_has_bits; // map annotations = 8; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_annotations_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_annotations().begin(); - it != this->_internal_annotations().end(); ++it) { - total_size += GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_annotations_size()); + for (const auto& entry : _internal_annotations()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // map labels = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_labels_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_labels().begin(); - it != this->_internal_labels().end(); ++it) { - total_size += GameServer_ObjectMeta_LabelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_labels_size()); + for (const auto& entry : _internal_labels()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string name = 1; if (!this->_internal_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string namespace = 2; if (!this->_internal_namespace_().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_namespace_()); } // string uid = 3; if (!this->_internal_uid().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_uid()); } // string resource_version = 4; if (!this->_internal_resource_version().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_resource_version()); } @@ -1674,14 +1603,8 @@ ::size_t GameServer_ObjectMeta::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_ObjectMeta::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_ObjectMeta::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_ObjectMeta::GetClassData() const { return &_class_data_; } - -void GameServer_ObjectMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.ObjectMeta) @@ -1704,15 +1627,15 @@ void GameServer_ObjectMeta::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_set_resource_version(from._internal_resource_version()); } if (from._internal_generation() != 0) { - _this->_internal_set_generation(from._internal_generation()); + _this->_impl_.generation_ = from._impl_.generation_; } if (from._internal_creation_timestamp() != 0) { - _this->_internal_set_creation_timestamp(from._internal_creation_timestamp()); + _this->_impl_.creation_timestamp_ = from._impl_.creation_timestamp_; } if (from._internal_deletion_timestamp() != 0) { - _this->_internal_set_deletion_timestamp(from._internal_deletion_timestamp()); + _this->_impl_.deletion_timestamp_ = from._impl_.deletion_timestamp_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_ObjectMeta::CopyFrom(const GameServer_ObjectMeta& from) { @@ -1722,26 +1645,22 @@ void GameServer_ObjectMeta::CopyFrom(const GameServer_ObjectMeta& from) { MergeFrom(from); } -bool GameServer_ObjectMeta::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_ObjectMeta::IsInitialized() const { return true; } -void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* other) { +void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); _impl_.labels_.InternalSwap(&other->_impl_.labels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, lhs_arena, - &other->_impl_.namespace__, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uid_, lhs_arena, - &other->_impl_.uid_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_version_, lhs_arena, - &other->_impl_.resource_version_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namespace__, &other->_impl_.namespace__, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.uid_, &other->_impl_.uid_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.resource_version_, &other->_impl_.resource_version_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_) + sizeof(GameServer_ObjectMeta::_impl_.deletion_timestamp_) - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)>( @@ -1749,10 +1668,10 @@ void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* other) { reinterpret_cast(&other->_impl_.generation_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_ObjectMeta::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[5]); +::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[5]); } // =================================================================== @@ -1760,52 +1679,57 @@ class GameServer_Spec_Health::_Internal { public: }; -GameServer_Spec_Health::GameServer_Spec_Health(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec.Health) } -GameServer_Spec_Health::GameServer_Spec_Health(const GameServer_Spec_Health& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Spec.Health) +GameServer_Spec_Health::GameServer_Spec_Health( + ::google::protobuf::Arena* arena, const GameServer_Spec_Health& from) + : GameServer_Spec_Health(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE GameServer_Spec_Health::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void GameServer_Spec_Health::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.disabled_) { false } - - , decltype(_impl_.period_seconds_) { 0 } - - , decltype(_impl_.failure_threshold_) { 0 } - - , decltype(_impl_.initial_delay_seconds_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, disabled_), + 0, + offsetof(Impl_, initial_delay_seconds_) - + offsetof(Impl_, disabled_) + + sizeof(Impl_::initial_delay_seconds_)); } - GameServer_Spec_Health::~GameServer_Spec_Health() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec.Health) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Spec_Health::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void GameServer_Spec_Health::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Spec_Health::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Spec_Health::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), + false, + }, + &GameServer_Spec_Health::MergeImpl, + &GameServer_Spec_Health::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec.Health) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1813,79 +1737,73 @@ void GameServer_Spec_Health::Clear() { ::memset(&_impl_.disabled_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.initial_delay_seconds_) - reinterpret_cast(&_impl_.disabled_)) + sizeof(_impl_.initial_delay_seconds_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Spec_Health::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int32 period_seconds = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.period_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int32 failure_threshold = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _impl_.failure_threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int32 initial_delay_seconds = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _impl_.initial_delay_seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Spec_Health::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> GameServer_Spec_Health::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Spec_Health_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // int32 initial_delay_seconds = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.initial_delay_seconds_), 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_)}}, + // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_)}}, + // int32 period_seconds = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.period_seconds_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_)}}, + // int32 failure_threshold = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Spec_Health, _impl_.failure_threshold_), 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // int32 period_seconds = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 failure_threshold = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + // int32 initial_delay_seconds = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* GameServer_Spec_Health::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec.Health) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { if (this->_internal_disabled() != 0) { @@ -1896,28 +1814,29 @@ ::uint8_t* GameServer_Spec_Health::_InternalSerialize( // int32 period_seconds = 2; if (this->_internal_period_seconds() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 2, this->_internal_period_seconds(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this->_internal_period_seconds(), target); } // int32 failure_threshold = 3; if (this->_internal_failure_threshold() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 3, this->_internal_failure_threshold(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<3>( + stream, this->_internal_failure_threshold(), target); } // int32 initial_delay_seconds = 4; if (this->_internal_initial_delay_seconds() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 4, this->_internal_initial_delay_seconds(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<4>( + stream, this->_internal_initial_delay_seconds(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec.Health) return target; @@ -1957,14 +1876,8 @@ ::size_t GameServer_Spec_Health::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Spec_Health::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Spec_Health::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Spec_Health::GetClassData() const { return &_class_data_; } - -void GameServer_Spec_Health::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Spec_Health::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec.Health) @@ -1973,18 +1886,18 @@ void GameServer_Spec_Health::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, (void) cached_has_bits; if (from._internal_disabled() != 0) { - _this->_internal_set_disabled(from._internal_disabled()); + _this->_impl_.disabled_ = from._impl_.disabled_; } if (from._internal_period_seconds() != 0) { - _this->_internal_set_period_seconds(from._internal_period_seconds()); + _this->_impl_.period_seconds_ = from._impl_.period_seconds_; } if (from._internal_failure_threshold() != 0) { - _this->_internal_set_failure_threshold(from._internal_failure_threshold()); + _this->_impl_.failure_threshold_ = from._impl_.failure_threshold_; } if (from._internal_initial_delay_seconds() != 0) { - _this->_internal_set_initial_delay_seconds(from._internal_initial_delay_seconds()); + _this->_impl_.initial_delay_seconds_ = from._impl_.initial_delay_seconds_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Spec_Health::CopyFrom(const GameServer_Spec_Health& from) { @@ -1994,14 +1907,14 @@ void GameServer_Spec_Health::CopyFrom(const GameServer_Spec_Health& from) { MergeFrom(from); } -bool GameServer_Spec_Health::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Spec_Health::IsInitialized() const { return true; } -void GameServer_Spec_Health::InternalSwap(GameServer_Spec_Health* other) { +void GameServer_Spec_Health::InternalSwap(GameServer_Spec_Health* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_) + sizeof(GameServer_Spec_Health::_impl_.initial_delay_seconds_) - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.disabled_)>( @@ -2009,10 +1922,10 @@ void GameServer_Spec_Health::InternalSwap(GameServer_Spec_Health* other) { reinterpret_cast(&other->_impl_.disabled_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Spec_Health::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[6]); +::google::protobuf::Metadata GameServer_Spec_Health::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[6]); } // =================================================================== @@ -2021,65 +1934,72 @@ class GameServer_Spec::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); - static const ::agones::dev::sdk::GameServer_Spec_Health& health(const GameServer_Spec* msg); - static void set_has_health(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::agones::dev::sdk::GameServer_Spec_Health& -GameServer_Spec::_Internal::health(const GameServer_Spec* msg) { - return *msg->_impl_.health_; -} -GameServer_Spec::GameServer_Spec(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec) } -GameServer_Spec::GameServer_Spec(const GameServer_Spec& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Spec* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.health_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.health_ = new ::agones::dev::sdk::GameServer_Spec_Health(*from._impl_.health_); - } +inline PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GameServer_Spec::GameServer_Spec( + ::google::protobuf::Arena* arena, + const GameServer_Spec& from) + : ::google::protobuf::Message(arena) { + GameServer_Spec* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.health_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Spec_Health>( + arena, *from._impl_.health_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Spec) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void GameServer_Spec::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.health_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.health_ = {}; } - GameServer_Spec::~GameServer_Spec() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Spec) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Spec::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.health_; -} - -void GameServer_Spec::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Spec::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.health_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Spec::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), + false, + }, + &GameServer_Spec::MergeImpl, + &GameServer_Spec::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Spec::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2090,66 +2010,67 @@ void GameServer_Spec::Clear() { _impl_.health_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Spec::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .agones.dev.sdk.GameServer.Spec.Health health = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_health(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Spec::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GameServer_Spec::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GameServer_Spec_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .agones.dev.sdk.GameServer.Spec.Health health = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_.health_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .agones.dev.sdk.GameServer.Spec.Health health = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_.health_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>()}, + }}, {{ + }}, +}; + ::uint8_t* GameServer_Spec::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.Spec.Health health = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::health(this), - _Internal::health(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.health_, _impl_.health_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Spec) return target; @@ -2166,34 +2087,35 @@ ::size_t GameServer_Spec::ByteSizeLong() const { // .agones.dev.sdk.GameServer.Spec.Health health = 1; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.health_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.health_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Spec::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Spec::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Spec::GetClassData() const { return &_class_data_; } - -void GameServer_Spec::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_health()->::agones::dev::sdk::GameServer_Spec_Health::MergeFrom( - from._internal_health()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.health_ != nullptr); + if (_this->_impl_.health_ == nullptr) { + _this->_impl_.health_ = + ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Spec_Health>(arena, *from._impl_.health_); + } else { + _this->_impl_.health_->MergeFrom(*from._impl_.health_); + } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Spec::CopyFrom(const GameServer_Spec& from) { @@ -2203,21 +2125,21 @@ void GameServer_Spec::CopyFrom(const GameServer_Spec& from) { MergeFrom(from); } -bool GameServer_Spec::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Spec::IsInitialized() const { return true; } -void GameServer_Spec::InternalSwap(GameServer_Spec* other) { +void GameServer_Spec::InternalSwap(GameServer_Spec* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.health_, other->_impl_.health_); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Spec::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[7]); +::google::protobuf::Metadata GameServer_Spec::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[7]); } // =================================================================== @@ -2225,164 +2147,155 @@ class GameServer_Status_Address::_Internal { public: }; -GameServer_Status_Address::GameServer_Status_Address(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Address) } -GameServer_Status_Address::GameServer_Status_Address(const GameServer_Status_Address& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Status_Address* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.type_) {} - - , decltype(_impl_.address_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : type_(arena, from.type_), + address_(arena, from.address_), + _cached_size_{0} {} + +GameServer_Status_Address::GameServer_Status_Address( + ::google::protobuf::Arena* arena, + const GameServer_Status_Address& from) + : ::google::protobuf::Message(arena) { + GameServer_Status_Address* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_type().empty()) { - _this->_impl_.type_.Set(from._internal_type(), _this->GetArenaForAllocation()); - } - _impl_.address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_address().empty()) { - _this->_impl_.address_.Set(from._internal_address(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Address) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : type_(arena), + address_(arena), + _cached_size_{0} {} inline void GameServer_Status_Address::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.type_) {} - - , decltype(_impl_.address_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - GameServer_Status_Address::~GameServer_Status_Address() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Address) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status_Address::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.type_.Destroy(); _impl_.address_.Destroy(); -} - -void GameServer_Status_Address::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status_Address::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status_Address::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), + false, + }, + &GameServer_Status_Address::MergeImpl, + &GameServer_Status_Address::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Address) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.type_.ClearToEmpty(); _impl_.address_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status_Address::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.Address.type")); - } else { - goto handle_unusual; - } - continue; - // string address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_address(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.Address.address")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status_Address::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 60, 2> GameServer_Status_Address::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Status_Address_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string address = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, + // string type = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string type = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\50\4\7\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Address" + "type" + "address" + }}, +}; + ::uint8_t* GameServer_Status_Address::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Address) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string type = 1; if (!this->_internal_type().empty()) { const std::string& _s = this->_internal_type(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.type"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.type"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string address = 2; if (!this->_internal_address().empty()) { const std::string& _s = this->_internal_address(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.address"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Address.address"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Address) return target; @@ -2398,27 +2311,21 @@ ::size_t GameServer_Status_Address::ByteSizeLong() const { // string type = 1; if (!this->_internal_type().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_type()); } // string address = 2; if (!this->_internal_address().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_address()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status_Address::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status_Address::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status_Address::GetClassData() const { return &_class_data_; } - -void GameServer_Status_Address::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Address) @@ -2432,7 +2339,7 @@ void GameServer_Status_Address::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_Address::CopyFrom(const GameServer_Status_Address& from) { @@ -2442,25 +2349,23 @@ void GameServer_Status_Address::CopyFrom(const GameServer_Status_Address& from) MergeFrom(from); } -bool GameServer_Status_Address::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status_Address::IsInitialized() const { return true; } -void GameServer_Status_Address::InternalSwap(GameServer_Status_Address* other) { +void GameServer_Status_Address::InternalSwap(GameServer_Status_Address* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, lhs_arena, - &other->_impl_.type_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, lhs_arena, - &other->_impl_.address_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_Address::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[8]); +::google::protobuf::Metadata GameServer_Status_Address::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[8]); } // =================================================================== @@ -2468,150 +2373,152 @@ class GameServer_Status_Port::_Internal { public: }; -GameServer_Status_Port::GameServer_Status_Port(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Port) } -GameServer_Status_Port::GameServer_Status_Port(const GameServer_Status_Port& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Status_Port* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} - - , decltype(_impl_.port_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : name_(arena, from.name_), + _cached_size_{0} {} + +GameServer_Status_Port::GameServer_Status_Port( + ::google::protobuf::Arena* arena, + const GameServer_Status_Port& from) + : ::google::protobuf::Message(arena) { + GameServer_Status_Port* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.port_ = from._impl_.port_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _this->_impl_.port_ = from._impl_.port_; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Port) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + _cached_size_{0} {} inline void GameServer_Status_Port::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} - - , decltype(_impl_.port_) { 0 } - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.port_ = {}; } - GameServer_Status_Port::~GameServer_Status_Port() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Port) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status_Port::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); -} - -void GameServer_Status_Port::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status_Port::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status_Port::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), + false, + }, + &GameServer_Status_Port::MergeImpl, + &GameServer_Status_Port::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Port) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.port_ = 0; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status_Port::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.Port.name")); - } else { - goto handle_unusual; - } - continue; - // int32 port = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status_Port::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 50, 2> GameServer_Status_Port::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Status_Port_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // int32 port = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GameServer_Status_Port, _impl_.port_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 port = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\45\4\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Port" + "name" + }}, +}; + ::uint8_t* GameServer_Status_Port::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Port) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Port.name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.Port.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // int32 port = 2; if (this->_internal_port() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 2, this->_internal_port(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<2>( + stream, this->_internal_port(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Port) return target; @@ -2627,7 +2534,7 @@ ::size_t GameServer_Status_Port::ByteSizeLong() const { // string name = 1; if (!this->_internal_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } @@ -2640,14 +2547,8 @@ ::size_t GameServer_Status_Port::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status_Port::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status_Port::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status_Port::GetClassData() const { return &_class_data_; } - -void GameServer_Status_Port::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status_Port::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Port) @@ -2659,9 +2560,9 @@ void GameServer_Status_Port::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_set_name(from._internal_name()); } if (from._internal_port() != 0) { - _this->_internal_set_port(from._internal_port()); + _this->_impl_.port_ = from._impl_.port_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { @@ -2671,25 +2572,23 @@ void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { MergeFrom(from); } -bool GameServer_Status_Port::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status_Port::IsInitialized() const { return true; } -void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* other) { +void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena); - - swap(_impl_.port_, other->_impl_.port_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.port_, other->_impl_.port_); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_Port::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[9]); +::google::protobuf::Metadata GameServer_Status_Port::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[9]); } // =================================================================== @@ -2697,166 +2596,178 @@ class GameServer_Status_PlayerStatus::_Internal { public: }; -GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) } -GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(const GameServer_Status_PlayerStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Status_PlayerStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.ids_){from._impl_.ids_} - , decltype(_impl_.count_) {} - - , decltype(_impl_.capacity_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : ids_{visibility, arena, from.ids_}, + _cached_size_{0} {} + +GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus( + ::google::protobuf::Arena* arena, + const GameServer_Status_PlayerStatus& from) + : ::google::protobuf::Message(arena) { + GameServer_Status_PlayerStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, count_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, count_), + offsetof(Impl_, capacity_) - + offsetof(Impl_, count_) + + sizeof(Impl_::capacity_)); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.count_, &from._impl_.count_, - static_cast<::size_t>(reinterpret_cast(&_impl_.capacity_) - - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : ids_{visibility, arena}, + _cached_size_{0} {} inline void GameServer_Status_PlayerStatus::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.ids_){arena} - , decltype(_impl_.count_) { ::int64_t{0} } - - , decltype(_impl_.capacity_) { ::int64_t{0} } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, count_), + 0, + offsetof(Impl_, capacity_) - + offsetof(Impl_, count_) + + sizeof(Impl_::capacity_)); } - GameServer_Status_PlayerStatus::~GameServer_Status_PlayerStatus() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.PlayerStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status_PlayerStatus::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_ids()->~RepeatedPtrField(); -} - -void GameServer_Status_PlayerStatus::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status_PlayerStatus::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status_PlayerStatus::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._cached_size_), + false, + }, + &GameServer_Status_PlayerStatus::MergeImpl, + &GameServer_Status_PlayerStatus::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status_PlayerStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.PlayerStatus) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_ids()->Clear(); + _impl_.ids_.Clear(); ::memset(&_impl_.count_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.capacity_) - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status_PlayerStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 count = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int64 capacity = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated string ids = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_ids(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.PlayerStatus.ids")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status_PlayerStatus::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 57, 2> GameServer_Status_PlayerStatus::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Status_PlayerStatus_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_PlayerStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // int64 count = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_PlayerStatus, _impl_.count_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_)}}, + // int64 capacity = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_PlayerStatus, _impl_.capacity_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_)}}, + // repeated string ids = 3; + {::_pbi::TcParser::FastUR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 count = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // int64 capacity = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // repeated string ids = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\55\0\0\3\0\0\0\0" + "agones.dev.sdk.GameServer.Status.PlayerStatus" + "ids" + }}, +}; + ::uint8_t* GameServer_Status_PlayerStatus::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.PlayerStatus) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // int64 count = 1; if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 1, this->_internal_count(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<1>( + stream, this->_internal_count(), target); } // int64 capacity = 2; if (this->_internal_capacity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 2, this->_internal_capacity(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<2>( + stream, this->_internal_capacity(), target); } // repeated string ids = 3; for (int i = 0, n = this->_internal_ids_size(); i < n; ++i) { - const auto& s = this->_internal_ids(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.PlayerStatus.ids"); + const auto& s = this->_internal_ids().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.PlayerStatus.ids"); target = stream->WriteString(3, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.PlayerStatus) return target; @@ -2871,12 +2782,11 @@ ::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { (void) cached_has_bits; // repeated string ids = 3; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_ids().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_ids().size()); for (int i = 0, n = _internal_ids().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_ids().Get(i)); } - // int64 count = 1; if (this->_internal_count() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( @@ -2892,14 +2802,8 @@ ::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status_PlayerStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status_PlayerStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status_PlayerStatus::GetClassData() const { return &_class_data_; } - -void GameServer_Status_PlayerStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status_PlayerStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) @@ -2909,12 +2813,12 @@ void GameServer_Status_PlayerStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& _this->_internal_mutable_ids()->MergeFrom(from._internal_ids()); if (from._internal_count() != 0) { - _this->_internal_set_count(from._internal_count()); + _this->_impl_.count_ = from._impl_.count_; } if (from._internal_capacity() != 0) { - _this->_internal_set_capacity(from._internal_capacity()); + _this->_impl_.capacity_ = from._impl_.capacity_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_PlayerStatus::CopyFrom(const GameServer_Status_PlayerStatus& from) { @@ -2924,16 +2828,15 @@ void GameServer_Status_PlayerStatus::CopyFrom(const GameServer_Status_PlayerStat MergeFrom(from); } -bool GameServer_Status_PlayerStatus::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status_PlayerStatus::IsInitialized() const { return true; } -void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus* other) { +void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_ids()->InternalSwap( - other->_internal_mutable_ids()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + _impl_.ids_.InternalSwap(&other->_impl_.ids_); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_) + sizeof(GameServer_Status_PlayerStatus::_impl_.capacity_) - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_)>( @@ -2941,10 +2844,10 @@ void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus reinterpret_cast(&other->_impl_.count_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_PlayerStatus::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[10]); +::google::protobuf::Metadata GameServer_Status_PlayerStatus::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[10]); } // =================================================================== @@ -2952,48 +2855,57 @@ class GameServer_Status_CounterStatus::_Internal { public: }; -GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.CounterStatus) } -GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(const GameServer_Status_CounterStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.CounterStatus) +GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( + ::google::protobuf::Arena* arena, const GameServer_Status_CounterStatus& from) + : GameServer_Status_CounterStatus(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_CounterStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void GameServer_Status_CounterStatus::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.count_) { ::int64_t{0} } - - , decltype(_impl_.capacity_) { ::int64_t{0} } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, count_), + 0, + offsetof(Impl_, capacity_) - + offsetof(Impl_, count_) + + sizeof(Impl_::capacity_)); } - GameServer_Status_CounterStatus::~GameServer_Status_CounterStatus() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.CounterStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status_CounterStatus::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); -} - -void GameServer_Status_CounterStatus::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status_CounterStatus::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status_CounterStatus::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), + false, + }, + &GameServer_Status_CounterStatus::MergeImpl, + &GameServer_Status_CounterStatus::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.CounterStatus) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3001,79 +2913,80 @@ void GameServer_Status_CounterStatus::Clear() { ::memset(&_impl_.count_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.capacity_) - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status_CounterStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 count = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // int64 capacity = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status_CounterStatus::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GameServer_Status_CounterStatus::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Status_CounterStatus_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // int64 capacity = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.capacity_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, + // int64 count = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 count = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // int64 capacity = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* GameServer_Status_CounterStatus::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.CounterStatus) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // int64 count = 1; if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 1, this->_internal_count(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<1>( + stream, this->_internal_count(), target); } // int64 capacity = 2; if (this->_internal_capacity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 2, this->_internal_capacity(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<2>( + stream, this->_internal_capacity(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.CounterStatus) return target; @@ -3102,14 +3015,8 @@ ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status_CounterStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status_CounterStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status_CounterStatus::GetClassData() const { return &_class_data_; } - -void GameServer_Status_CounterStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status_CounterStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) @@ -3118,12 +3025,12 @@ void GameServer_Status_CounterStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message (void) cached_has_bits; if (from._internal_count() != 0) { - _this->_internal_set_count(from._internal_count()); + _this->_impl_.count_ = from._impl_.count_; } if (from._internal_capacity() != 0) { - _this->_internal_set_capacity(from._internal_capacity()); + _this->_impl_.capacity_ = from._impl_.capacity_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_CounterStatus::CopyFrom(const GameServer_Status_CounterStatus& from) { @@ -3133,14 +3040,14 @@ void GameServer_Status_CounterStatus::CopyFrom(const GameServer_Status_CounterSt MergeFrom(from); } -bool GameServer_Status_CounterStatus::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status_CounterStatus::IsInitialized() const { return true; } -void GameServer_Status_CounterStatus::InternalSwap(GameServer_Status_CounterStatus* other) { +void GameServer_Status_CounterStatus::InternalSwap(GameServer_Status_CounterStatus* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_) + sizeof(GameServer_Status_CounterStatus::_impl_.capacity_) - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)>( @@ -3148,10 +3055,10 @@ void GameServer_Status_CounterStatus::InternalSwap(GameServer_Status_CounterStat reinterpret_cast(&other->_impl_.count_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_CounterStatus::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[11]); +::google::protobuf::Metadata GameServer_Status_CounterStatus::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[11]); } // =================================================================== @@ -3159,142 +3066,151 @@ class GameServer_Status_ListStatus::_Internal { public: }; -GameServer_Status_ListStatus::GameServer_Status_ListStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } -GameServer_Status_ListStatus::GameServer_Status_ListStatus(const GameServer_Status_ListStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Status_ListStatus* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.values_){from._impl_.values_} - , decltype(_impl_.capacity_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : values_{visibility, arena, from.values_}, + _cached_size_{0} {} + +GameServer_Status_ListStatus::GameServer_Status_ListStatus( + ::google::protobuf::Arena* arena, + const GameServer_Status_ListStatus& from) + : ::google::protobuf::Message(arena) { + GameServer_Status_ListStatus* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.capacity_ = from._impl_.capacity_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.capacity_ = from._impl_.capacity_; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : values_{visibility, arena}, + _cached_size_{0} {} inline void GameServer_Status_ListStatus::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.values_){arena} - , decltype(_impl_.capacity_) { ::int64_t{0} } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.capacity_ = {}; } - GameServer_Status_ListStatus::~GameServer_Status_ListStatus() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.ListStatus) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status_ListStatus::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_values()->~RepeatedPtrField(); -} - -void GameServer_Status_ListStatus::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status_ListStatus::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status_ListStatus::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), + false, + }, + &GameServer_Status_ListStatus::MergeImpl, + &GameServer_Status_ListStatus::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.ListStatus) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_values()->Clear(); + _impl_.values_.Clear(); _impl_.capacity_ = ::int64_t{0}; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status_ListStatus::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // int64 capacity = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _impl_.capacity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated string values = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_values(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.ListStatus.values")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status_ListStatus::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 58, 2> GameServer_Status_ListStatus::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_GameServer_Status_ListStatus_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated string values = 2; + {::_pbi::TcParser::FastUR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_)}}, + // int64 capacity = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_ListStatus, _impl_.capacity_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 capacity = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + // repeated string values = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\53\0\6\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.ListStatus" + "values" + }}, +}; + ::uint8_t* GameServer_Status_ListStatus::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.ListStatus) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // int64 capacity = 1; if (this->_internal_capacity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 1, this->_internal_capacity(), target); + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt64ToArrayWithField<1>( + stream, this->_internal_capacity(), target); } // repeated string values = 2; for (int i = 0, n = this->_internal_values_size(); i < n; ++i) { - const auto& s = this->_internal_values(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.ListStatus.values"); + const auto& s = this->_internal_values().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.ListStatus.values"); target = stream->WriteString(2, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.ListStatus) return target; @@ -3309,12 +3225,11 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { (void) cached_has_bits; // repeated string values = 2; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_values().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_values().size()); for (int i = 0, n = _internal_values().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_values().Get(i)); } - // int64 capacity = 1; if (this->_internal_capacity() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( @@ -3324,14 +3239,8 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status_ListStatus::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status_ListStatus::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status_ListStatus::GetClassData() const { return &_class_data_; } - -void GameServer_Status_ListStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status_ListStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.ListStatus) @@ -3341,9 +3250,9 @@ void GameServer_Status_ListStatus::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& t _this->_internal_mutable_values()->MergeFrom(from._internal_values()); if (from._internal_capacity() != 0) { - _this->_internal_set_capacity(from._internal_capacity()); + _this->_impl_.capacity_ = from._impl_.capacity_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_ListStatus::CopyFrom(const GameServer_Status_ListStatus& from) { @@ -3353,49 +3262,41 @@ void GameServer_Status_ListStatus::CopyFrom(const GameServer_Status_ListStatus& MergeFrom(from); } -bool GameServer_Status_ListStatus::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status_ListStatus::IsInitialized() const { return true; } -void GameServer_Status_ListStatus::InternalSwap(GameServer_Status_ListStatus* other) { +void GameServer_Status_ListStatus::InternalSwap(GameServer_Status_ListStatus* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_values()->InternalSwap( - other->_internal_mutable_values()); - - swap(_impl_.capacity_, other->_impl_.capacity_); + _impl_.values_.InternalSwap(&other->_impl_.values_); + swap(_impl_.capacity_, other->_impl_.capacity_); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_ListStatus::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[12]); +::google::protobuf::Metadata GameServer_Status_ListStatus::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[12]); } // =================================================================== GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() {} -GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GameServer_Status_CountersEntry_DoNotUse::MergeFrom(const GameServer_Status_CountersEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_CountersEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[13]); +::google::protobuf::Metadata GameServer_Status_CountersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[13]); } // =================================================================== GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() {} -GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void GameServer_Status_ListsEntry_DoNotUse::MergeFrom(const GameServer_Status_ListsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status_ListsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[14]); +::google::protobuf::Metadata GameServer_Status_ListsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[14]); } // =================================================================== @@ -3404,119 +3305,94 @@ class GameServer_Status::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); - static const ::agones::dev::sdk::GameServer_Status_PlayerStatus& players(const GameServer_Status* msg); - static void set_has_players(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::agones::dev::sdk::GameServer_Status_PlayerStatus& -GameServer_Status::_Internal::players(const GameServer_Status* msg) { - return *msg->_impl_.players_; -} -GameServer_Status::GameServer_Status(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer_Status::GameServer_Status(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status) } -GameServer_Status::GameServer_Status(const GameServer_Status& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer_Status* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.ports_){from._impl_.ports_} - , /*decltype(_impl_.counters_)*/{} - , /*decltype(_impl_.lists_)*/{} - , decltype(_impl_.addresses_){from._impl_.addresses_} - , decltype(_impl_.state_) {} - - , decltype(_impl_.address_) {} - - , decltype(_impl_.players_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + ports_{visibility, arena, from.ports_}, + counters_{visibility, arena, from.counters_}, + lists_{visibility, arena, from.lists_}, + addresses_{visibility, arena, from.addresses_}, + state_(arena, from.state_), + address_(arena, from.address_) {} + +GameServer_Status::GameServer_Status( + ::google::protobuf::Arena* arena, + const GameServer_Status& from) + : ::google::protobuf::Message(arena) { + GameServer_Status* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.players_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Status_PlayerStatus>( + arena, *from._impl_.players_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.counters_.MergeFrom(from._impl_.counters_); - _this->_impl_.lists_.MergeFrom(from._impl_.lists_); - _impl_.state_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.state_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_state().empty()) { - _this->_impl_.state_.Set(from._internal_state(), _this->GetArenaForAllocation()); - } - _impl_.address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_address().empty()) { - _this->_impl_.address_.Set(from._internal_address(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.players_ = new ::agones::dev::sdk::GameServer_Status_PlayerStatus(*from._impl_.players_); - } // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status) } +inline PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + ports_{visibility, arena}, + counters_{visibility, arena}, + lists_{visibility, arena}, + addresses_{visibility, arena}, + state_(arena), + address_(arena) {} inline void GameServer_Status::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.ports_){arena} - , /*decltype(_impl_.counters_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.lists_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.addresses_){arena} - , decltype(_impl_.state_) {} - - , decltype(_impl_.address_) {} - - , decltype(_impl_.players_){nullptr} - }; - _impl_.state_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.state_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.address_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.players_ = {}; } - GameServer_Status::~GameServer_Status() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer_Status::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_ports()->~RepeatedPtrField(); - _impl_.counters_.~MapField(); - _impl_.lists_.~MapField(); - _internal_mutable_addresses()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.state_.Destroy(); _impl_.address_.Destroy(); - if (this != internal_default_instance()) delete _impl_.players_; -} - -void GameServer_Status::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer_Status::Clear() { + delete _impl_.players_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer_Status::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), + false, + }, + &GameServer_Status::MergeImpl, + &GameServer_Status::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer_Status::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_ports()->Clear(); + _impl_.ports_.Clear(); _impl_.counters_.Clear(); _impl_.lists_.Clear(); - _internal_mutable_addresses()->Clear(); + _impl_.addresses_.Clear(); _impl_.state_.ClearToEmpty(); _impl_.address_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; @@ -3525,226 +3401,210 @@ void GameServer_Status::Clear() { _impl_.players_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer_Status::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string state = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_state(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.state")); - } else { - goto handle_unusual; - } - continue; - // string address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_address(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "agones.dev.sdk.GameServer.Status.address")); - } else { - goto handle_unusual; - } - continue; - // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_ports(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_players(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // map counters = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.counters_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map lists = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.lists_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_addresses(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer_Status::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 7, 66, 2> GameServer_Status::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 7, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GameServer_Status_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string state = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, + // string address = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_)}}, + // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_)}}, + // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; + {::_pbi::TcParser::FastMtS1, + {34, 0, 1, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.players_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; + {::_pbi::TcParser::FastMtR1, + {58, 63, 6, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string state = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.players_), _Internal::kHasBitsOffset + 0, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map counters = 5; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map lists = 6; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_PlayerStatus>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(GameServer_Status()._impl_.counters_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::agones::dev::sdk::GameServer_Status_CounterStatus>}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(GameServer_Status()._impl_.lists_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::agones::dev::sdk::GameServer_Status_ListStatus>}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, + }}, {{ + "\40\5\7\0\0\10\5\0" + "agones.dev.sdk.GameServer.Status" + "state" + "address" + "counters" + "lists" + }}, +}; + ::uint8_t* GameServer_Status::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string state = 1; if (!this->_internal_state().empty()) { const std::string& _s = this->_internal_state(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.state"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.state"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string address = 2; if (!this->_internal_address().empty()) { const std::string& _s = this->_internal_address(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.address"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.address"); target = stream->WriteStringMaybeAliased(2, _s, target); } // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_ports_size()); i < n; i++) { - const auto& repfield = this->_internal_ports(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_ports_size()); + i < n; i++) { + const auto& repfield = this->_internal_ports().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); } cached_has_bits = _impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::players(this), - _Internal::players(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *_impl_.players_, _impl_.players_->GetCachedSize(), target, stream); } // map counters = 5; - if (!this->_internal_counters().empty()) { - using MapType = ::_pb::Map; - using WireHelper = GameServer_Status_CountersEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_counters(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.counters"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_counters().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_counters(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.counters"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.counters"); } } } // map lists = 6; - if (!this->_internal_lists().empty()) { - using MapType = ::_pb::Map; - using WireHelper = GameServer_Status_ListsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_lists(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.lists"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_lists().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_lists(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 6, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.lists"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 6, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.Status.lists"); } } } // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - for (unsigned i = 0, - n = static_cast(this->_internal_addresses_size()); i < n; i++) { - const auto& repfield = this->_internal_addresses(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_addresses_size()); + i < n; i++) { + const auto& repfield = this->_internal_addresses().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, repfield, repfield.GetCachedSize(), + target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status) return target; @@ -3761,88 +3621,83 @@ ::size_t GameServer_Status::ByteSizeLong() const { // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; total_size += 1UL * this->_internal_ports_size(); for (const auto& msg : this->_internal_ports()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // map counters = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_counters_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus >::const_iterator - it = this->_internal_counters().begin(); - it != this->_internal_counters().end(); ++it) { - total_size += GameServer_Status_CountersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_counters_size()); + for (const auto& entry : _internal_counters()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // map lists = 6; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_lists_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::agones::dev::sdk::GameServer_Status_ListStatus >::const_iterator - it = this->_internal_lists().begin(); - it != this->_internal_lists().end(); ++it) { - total_size += GameServer_Status_ListsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_lists_size()); + for (const auto& entry : _internal_lists()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; total_size += 1UL * this->_internal_addresses_size(); for (const auto& msg : this->_internal_addresses()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // string state = 1; if (!this->_internal_state().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_state()); } // string address = 2; if (!this->_internal_address().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_address()); } // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.players_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.players_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer_Status::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer_Status::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer_Status::GetClassData() const { return &_class_data_; } - -void GameServer_Status::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_ports()->MergeFrom(from._internal_ports()); + _this->_internal_mutable_ports()->MergeFrom( + from._internal_ports()); _this->_impl_.counters_.MergeFrom(from._impl_.counters_); _this->_impl_.lists_.MergeFrom(from._impl_.lists_); - _this->_internal_mutable_addresses()->MergeFrom(from._internal_addresses()); + _this->_internal_mutable_addresses()->MergeFrom( + from._internal_addresses()); if (!from._internal_state().empty()) { _this->_internal_set_state(from._internal_state()); } if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_players()->::agones::dev::sdk::GameServer_Status_PlayerStatus::MergeFrom( - from._internal_players()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.players_ != nullptr); + if (_this->_impl_.players_ == nullptr) { + _this->_impl_.players_ = + ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Status_PlayerStatus>(arena, *from._impl_.players_); + } else { + _this->_impl_.players_->MergeFrom(*from._impl_.players_); + } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status::CopyFrom(const GameServer_Status& from) { @@ -3852,31 +3707,29 @@ void GameServer_Status::CopyFrom(const GameServer_Status& from) { MergeFrom(from); } -bool GameServer_Status::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer_Status::IsInitialized() const { return true; } -void GameServer_Status::InternalSwap(GameServer_Status* other) { +void GameServer_Status::InternalSwap(GameServer_Status* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _internal_mutable_ports()->InternalSwap(other->_internal_mutable_ports()); + _impl_.ports_.InternalSwap(&other->_impl_.ports_); _impl_.counters_.InternalSwap(&other->_impl_.counters_); _impl_.lists_.InternalSwap(&other->_impl_.lists_); - _internal_mutable_addresses()->InternalSwap(other->_internal_mutable_addresses()); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, lhs_arena, - &other->_impl_.state_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, lhs_arena, - &other->_impl_.address_, rhs_arena); + _impl_.addresses_.InternalSwap(&other->_impl_.addresses_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, &other->_impl_.state_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); swap(_impl_.players_, other->_impl_.players_); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer_Status::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[15]); +::google::protobuf::Metadata GameServer_Status::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[15]); } // =================================================================== @@ -3885,93 +3738,85 @@ class GameServer::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); - static const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta(const GameServer* msg); - static void set_has_object_meta(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::agones::dev::sdk::GameServer_Spec& spec(const GameServer* msg); - static void set_has_spec(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::agones::dev::sdk::GameServer_Status& status(const GameServer* msg); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::agones::dev::sdk::GameServer_ObjectMeta& -GameServer::_Internal::object_meta(const GameServer* msg) { - return *msg->_impl_.object_meta_; -} -const ::agones::dev::sdk::GameServer_Spec& -GameServer::_Internal::spec(const GameServer* msg) { - return *msg->_impl_.spec_; -} -const ::agones::dev::sdk::GameServer_Status& -GameServer::_Internal::status(const GameServer* msg) { - return *msg->_impl_.status_; -} -GameServer::GameServer(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GameServer::GameServer(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer) } -GameServer::GameServer(const GameServer& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - GameServer* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.object_meta_){nullptr} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.object_meta_ = new ::agones::dev::sdk::GameServer_ObjectMeta(*from._impl_.object_meta_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.spec_ = new ::agones::dev::sdk::GameServer_Spec(*from._impl_.spec_); - } - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.status_ = new ::agones::dev::sdk::GameServer_Status(*from._impl_.status_); - } +inline PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +GameServer::GameServer( + ::google::protobuf::Arena* arena, + const GameServer& from) + : ::google::protobuf::Message(arena) { + GameServer* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.object_meta_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_ObjectMeta>( + arena, *from._impl_.object_meta_) + : nullptr; + _impl_.spec_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Spec>( + arena, *from._impl_.spec_) + : nullptr; + _impl_.status_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Status>( + arena, *from._impl_.status_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer) } +inline PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} inline void GameServer::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.object_meta_){nullptr} - , decltype(_impl_.spec_){nullptr} - , decltype(_impl_.status_){nullptr} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, object_meta_), + 0, + offsetof(Impl_, status_) - + offsetof(Impl_, object_meta_) + + sizeof(Impl_::status_)); } - GameServer::~GameServer() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void GameServer::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.object_meta_; - if (this != internal_default_instance()) delete _impl_.spec_; - if (this != internal_default_instance()) delete _impl_.status_; -} - -void GameServer::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void GameServer::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + delete _impl_.object_meta_; + delete _impl_.spec_; + delete _impl_.status_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +GameServer::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), + false, + }, + &GameServer::MergeImpl, + &GameServer::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void GameServer::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3992,98 +3837,94 @@ void GameServer::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* GameServer::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_object_meta(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .agones.dev.sdk.GameServer.Spec spec = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_spec(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .agones.dev.sdk.GameServer.Status status = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_status(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* GameServer::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 3, 0, 2> GameServer::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GameServer_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_)}}, + // .agones.dev.sdk.GameServer.Spec spec = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 1, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.spec_)}}, + // .agones.dev.sdk.GameServer.Status status = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 2, PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; + {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .agones.dev.sdk.GameServer.Spec spec = 2; + {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.spec_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .agones.dev.sdk.GameServer.Status status = 3; + {PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_), _Internal::kHasBitsOffset + 2, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>()}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>()}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>()}, + }}, {{ + }}, +}; + ::uint8_t* GameServer::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::object_meta(this), - _Internal::object_meta(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.object_meta_, _impl_.object_meta_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Spec spec = 2; if (cached_has_bits & 0x00000002u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::spec(this), - _Internal::spec(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.spec_, _impl_.spec_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Status status = 3; if (cached_has_bits & 0x00000004u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::status(this), - _Internal::status(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.status_, _impl_.status_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer) return target; @@ -4101,39 +3942,31 @@ ::size_t GameServer::ByteSizeLong() const { if (cached_has_bits & 0x00000007u) { // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.object_meta_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.object_meta_); } // .agones.dev.sdk.GameServer.Spec spec = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.spec_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.spec_); } // .agones.dev.sdk.GameServer.Status status = 3; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.status_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.status_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GameServer::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - GameServer::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GameServer::GetClassData() const { return &_class_data_; } - -void GameServer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -4142,19 +3975,35 @@ void GameServer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_object_meta()->::agones::dev::sdk::GameServer_ObjectMeta::MergeFrom( - from._internal_object_meta()); + ABSL_DCHECK(from._impl_.object_meta_ != nullptr); + if (_this->_impl_.object_meta_ == nullptr) { + _this->_impl_.object_meta_ = + ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_ObjectMeta>(arena, *from._impl_.object_meta_); + } else { + _this->_impl_.object_meta_->MergeFrom(*from._impl_.object_meta_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_spec()->::agones::dev::sdk::GameServer_Spec::MergeFrom( - from._internal_spec()); + ABSL_DCHECK(from._impl_.spec_ != nullptr); + if (_this->_impl_.spec_ == nullptr) { + _this->_impl_.spec_ = + ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Spec>(arena, *from._impl_.spec_); + } else { + _this->_impl_.spec_->MergeFrom(*from._impl_.spec_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_status()->::agones::dev::sdk::GameServer_Status::MergeFrom( - from._internal_status()); + ABSL_DCHECK(from._impl_.status_ != nullptr); + if (_this->_impl_.status_ == nullptr) { + _this->_impl_.status_ = + ::google::protobuf::Message::CopyConstruct<::agones::dev::sdk::GameServer_Status>(arena, *from._impl_.status_); + } else { + _this->_impl_.status_->MergeFrom(*from._impl_.status_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer::CopyFrom(const GameServer& from) { @@ -4164,15 +4013,15 @@ void GameServer::CopyFrom(const GameServer& from) { MergeFrom(from); } -bool GameServer::IsInitialized() const { +PROTOBUF_NOINLINE bool GameServer::IsInitialized() const { return true; } -void GameServer::InternalSwap(GameServer* other) { +void GameServer::InternalSwap(GameServer* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(GameServer, _impl_.status_) + sizeof(GameServer::_impl_.status_) - PROTOBUF_FIELD_OFFSET(GameServer, _impl_.object_meta_)>( @@ -4180,84 +4029,22 @@ void GameServer::InternalSwap(GameServer* other) { reinterpret_cast(&other->_impl_.object_meta_)); } -::PROTOBUF_NAMESPACE_ID::Metadata GameServer::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_sdk_2eproto_getter, &descriptor_table_sdk_2eproto_once, - file_level_metadata_sdk_2eproto[16]); +::google::protobuf::Metadata GameServer::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_sdk_2eproto_getter, + &descriptor_table_sdk_2eproto_once, + file_level_metadata_sdk_2eproto[16]); } // @@protoc_insertion_point(namespace_scope) } // namespace sdk } // namespace dev } // namespace agones -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::Empty* -Arena::CreateMaybeMessage< ::agones::dev::sdk::Empty >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::Empty >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::KeyValue* -Arena::CreateMaybeMessage< ::agones::dev::sdk::KeyValue >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::KeyValue >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::Duration* -Arena::CreateMaybeMessage< ::agones::dev::sdk::Duration >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::Duration >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_ObjectMeta* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_ObjectMeta >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_ObjectMeta >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Spec_Health* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Spec_Health >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Spec_Health >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Spec* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Spec >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Spec >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_Address* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_Address >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_Address >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_Port* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_Port >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_Port >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_PlayerStatus* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_PlayerStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_PlayerStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_CounterStatus* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_CounterStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_CounterStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_ListStatus* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_ListStatus >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_ListStatus >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer_Status* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer_Status >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer_Status >(arena); -} -template<> PROTOBUF_NOINLINE ::agones::dev::sdk::GameServer* -Arena::CreateMaybeMessage< ::agones::dev::sdk::GameServer >(Arena* arena) { - return Arena::CreateMessageInternal< ::agones::dev::sdk::GameServer >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_sdk_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/sdks/cpp/src/google/annotations.pb.cc b/sdks/cpp/src/google/annotations.pb.cc index 27a838670e..e7e64d18be 100644 --- a/sdks/cpp/src/google/annotations.pb.cc +++ b/sdks/cpp/src/google/annotations.pb.cc @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/annotations.proto +// Protobuf C++ Version: 5.26.1 #include "google/api/annotations.pb.h" @@ -26,13 +27,15 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace api { } // namespace api @@ -44,7 +47,8 @@ static constexpr const ::_pb::ServiceDescriptor** const ::uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\034google/api/annotations.proto\022\ngoogle.a" "pi\032\025google/api/http.proto\032 google/protob" "uf/descriptor.proto:E\n\004http\022\036.google.pro" @@ -92,18 +96,27 @@ const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fannotations_2eprot PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fannotations_2eproto_getter() { return &descriptor_table_google_2fapi_2fannotations_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fannotations_2eproto(&descriptor_table_google_2fapi_2fannotations_2eproto); namespace google { namespace api { -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> - http(kHttpFieldNumber, ::google::api::HttpRule::default_instance(), nullptr); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::MethodOptions, ::_pbi::MessageTypeTraits< ::google::api::HttpRule >, + 11, false> + http(kHttpFieldNumber, &::google::api::_HttpRule_default_instance_); // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_google_2fapi_2fannotations_2eproto), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::MethodOptions::default_instance(), 72295728, 11, + false, false, &::google::api::HttpRule::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/sdks/cpp/src/google/http.pb.cc b/sdks/cpp/src/google/http.pb.cc index 91591510f7..3c4a1838af 100644 --- a/sdks/cpp/src/google/http.pb.cc +++ b/sdks/cpp/src/google/http.pb.cc @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/http.proto +// Protobuf C++ Version: 5.26.1 #include "google/api/http.pb.h" @@ -26,51 +27,61 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace api { -template -PROTOBUF_CONSTEXPR Http::Http( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.rules_)*/{} - , /*decltype(_impl_.fully_decode_reserved_expansion_)*/ false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct HttpDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HttpDefaultTypeInternal() {} +inline constexpr CustomHttpPattern::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : kind_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct CustomHttpPatternDefaultTypeInternal { + PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CustomHttpPatternDefaultTypeInternal() {} union { - Http _instance; + CustomHttpPattern _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; -template -PROTOBUF_CONSTEXPR HttpRule::HttpRule( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.additional_bindings_)*/{} - , /*decltype(_impl_.selector_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.body_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; - , /*decltype(_impl_.response_body_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr HttpRule::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : additional_bindings_{}, + selector_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + response_body_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pattern_{}, + _cached_size_{0}, + _oneof_case_{} {} - , /*decltype(_impl_.pattern_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{}} {} +template +PROTOBUF_CONSTEXPR HttpRule::HttpRule(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct HttpRuleDefaultTypeInternal { PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HttpRuleDefaultTypeInternal() {} @@ -81,28 +92,26 @@ struct HttpRuleDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; -template -PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.kind_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - , /*decltype(_impl_.path_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr Http::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : rules_{}, + fully_decode_reserved_expansion_{false}, + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct CustomHttpPatternDefaultTypeInternal { - PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CustomHttpPatternDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR Http::Http(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct HttpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpDefaultTypeInternal() {} union { - CustomHttpPattern _instance; + Http _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; } // namespace api } // namespace google static ::_pb::Metadata file_level_metadata_google_2fapi_2fhttp_2eproto[3]; @@ -110,62 +119,63 @@ static constexpr const ::_pb::EnumDescriptor** file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -const ::uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.response_body_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.kind_), - PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.path_), +const ::uint32_t + TableStruct_google_2fapi_2fhttp_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::Http, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.response_body_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.kind_), + PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_.path_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::google::api::Http)}, - { 10, -1, -1, sizeof(::google::api::HttpRule)}, - { 29, -1, -1, sizeof(::google::api::CustomHttpPattern)}, + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::google::api::Http)}, + {10, -1, -1, sizeof(::google::api::HttpRule)}, + {29, -1, -1, sizeof(::google::api::CustomHttpPattern)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::google::api::_Http_default_instance_._instance, &::google::api::_HttpRule_default_instance_._instance, &::google::api::_CustomHttpPattern_default_instance_._instance, }; -const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n\025google/api/http.proto\022\ngoogle.api\"T\n\004H" "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule" "\022\'\n\037fully_decode_reserved_expansion\030\002 \001(" @@ -214,9 +224,6 @@ const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto = { PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2fapi_2fhttp_2eproto_getter() { return &descriptor_table_google_2fapi_2fhttp_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2fapi_2fhttp_2eproto(&descriptor_table_google_2fapi_2fhttp_2eproto); namespace google { namespace api { // =================================================================== @@ -225,128 +232,138 @@ class Http::_Internal { public: }; -Http::Http(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Http::Http(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.api.Http) } -Http::Http(const Http& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Http* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.rules_){from._impl_.rules_} - , decltype(_impl_.fully_decode_reserved_expansion_) {} +inline PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : rules_{visibility, arena, from.rules_}, + _cached_size_{0} {} + +Http::Http( + ::google::protobuf::Arena* arena, + const Http& from) + : ::google::protobuf::Message(arena) { + Http* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; // @@protoc_insertion_point(copy_constructor:google.api.Http) } +inline PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : rules_{visibility, arena}, + _cached_size_{0} {} inline void Http::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.rules_){arena} - , decltype(_impl_.fully_decode_reserved_expansion_) { false } - - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.fully_decode_reserved_expansion_ = {}; } - Http::~Http() { // @@protoc_insertion_point(destructor:google.api.Http) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Http::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_rules()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); } -void Http::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +const ::google::protobuf::MessageLite::ClassData* +Http::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Http, _impl_._cached_size_), + false, + }, + &Http::MergeImpl, + &Http::kDescriptorMethods, + }; + return &_data_; } - -void Http::Clear() { +PROTOBUF_NOINLINE void Http::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Http) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_rules()->Clear(); + _impl_.rules_.Clear(); _impl_.fully_decode_reserved_expansion_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Http::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.api.HttpRule rules = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_rules(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - // bool fully_decode_reserved_expansion = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _impl_.fully_decode_reserved_expansion_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* Http::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> Http::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Http_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::api::Http>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // bool fully_decode_reserved_expansion = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_)}}, + // repeated .google.api.HttpRule rules = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.api.HttpRule rules = 1; + {PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool fully_decode_reserved_expansion = 2; + {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, + }}, {{ + }}, +}; + ::uint8_t* Http::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // repeated .google.api.HttpRule rules = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_rules_size()); i < n; i++) { - const auto& repfield = this->_internal_rules(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_rules_size()); + i < n; i++) { + const auto& repfield = this->_internal_rules().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); } // bool fully_decode_reserved_expansion = 2; @@ -357,8 +374,9 @@ ::uint8_t* Http::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.Http) return target; @@ -375,10 +393,8 @@ ::size_t Http::ByteSizeLong() const { // repeated .google.api.HttpRule rules = 1; total_size += 1UL * this->_internal_rules_size(); for (const auto& msg : this->_internal_rules()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // bool fully_decode_reserved_expansion = 2; if (this->_internal_fully_decode_reserved_expansion() != 0) { total_size += 2; @@ -387,14 +403,8 @@ ::size_t Http::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Http::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Http::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Http::GetClassData() const { return &_class_data_; } - -void Http::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Http::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) @@ -402,11 +412,12 @@ void Http::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_ ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_rules()->MergeFrom(from._internal_rules()); + _this->_internal_mutable_rules()->MergeFrom( + from._internal_rules()); if (from._internal_fully_decode_reserved_expansion() != 0) { - _this->_internal_set_fully_decode_reserved_expansion(from._internal_fully_decode_reserved_expansion()); + _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Http::CopyFrom(const Http& from) { @@ -416,22 +427,21 @@ void Http::CopyFrom(const Http& from) { MergeFrom(from); } -bool Http::IsInitialized() const { +PROTOBUF_NOINLINE bool Http::IsInitialized() const { return true; } -void Http::InternalSwap(Http* other) { +void Http::InternalSwap(Http* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_rules()->InternalSwap(other->_internal_mutable_rules()); - - swap(_impl_.fully_decode_reserved_expansion_, other->_impl_.fully_decode_reserved_expansion_); + _impl_.rules_.InternalSwap(&other->_impl_.rules_); + swap(_impl_.fully_decode_reserved_expansion_, other->_impl_.fully_decode_reserved_expansion_); } -::PROTOBUF_NAMESPACE_ID::Metadata Http::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, - file_level_metadata_google_2fapi_2fhttp_2eproto[0]); +::google::protobuf::Metadata Http::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto_getter, + &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[0]); } // =================================================================== @@ -439,159 +449,104 @@ class HttpRule::_Internal { public: static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); - static const ::google::api::CustomHttpPattern& custom(const HttpRule* msg); }; -const ::google::api::CustomHttpPattern& -HttpRule::_Internal::custom(const HttpRule* msg) { - return *msg->_impl_.pattern_.custom_; -} void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::google::protobuf::Arena* message_arena = GetArena(); clear_pattern(); if (custom) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(custom); + ::google::protobuf::Arena* submessage_arena = custom->GetArena(); if (message_arena != submessage_arena) { - custom = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, custom, submessage_arena); + custom = ::google::protobuf::internal::GetOwnedMessage(message_arena, custom, submessage_arena); } set_has_custom(); _impl_.pattern_.custom_ = custom; } // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom) } -HttpRule::HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HttpRule::HttpRule(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) } -HttpRule::HttpRule(const HttpRule& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - HttpRule* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.additional_bindings_){from._impl_.additional_bindings_} - , decltype(_impl_.selector_) {} - - , decltype(_impl_.body_) {} - - , decltype(_impl_.response_body_) {} - - , decltype(_impl_.pattern_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.selector_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.selector_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_selector().empty()) { - _this->_impl_.selector_.Set(from._internal_selector(), _this->GetArenaForAllocation()); - } - _impl_.body_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.body_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_body().empty()) { - _this->_impl_.body_.Set(from._internal_body(), _this->GetArenaForAllocation()); - } - _impl_.response_body_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.response_body_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_response_body().empty()) { - _this->_impl_.response_body_.Set(from._internal_response_body(), _this->GetArenaForAllocation()); - } - clear_has_pattern(); - switch (from.pattern_case()) { - case kGet: { - _this->_internal_set_get(from._internal_get()); - break; - } - case kPut: { - _this->_internal_set_put(from._internal_put()); - break; - } - case kPost: { - _this->_internal_set_post(from._internal_post()); - break; - } - case kDelete: { - _this->_internal_set_delete_(from._internal_delete_()); - break; - } - case kPatch: { - _this->_internal_set_patch(from._internal_patch()); - break; - } - case kCustom: { - _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( - from._internal_custom()); - break; - } - case PATTERN_NOT_SET: { +inline PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : additional_bindings_{visibility, arena, from.additional_bindings_}, + selector_(arena, from.selector_), + body_(arena, from.body_), + response_body_(arena, from.response_body_), + pattern_{}, + _cached_size_{0}, + _oneof_case_{from._oneof_case_[0]} {} + +HttpRule::HttpRule( + ::google::protobuf::Arena* arena, + const HttpRule& from) + : ::google::protobuf::Message(arena) { + HttpRule* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + switch (pattern_case()) { + case PATTERN_NOT_SET: break; - } + case kGet: + new (&_impl_.pattern_.get_) decltype(_impl_.pattern_.get_){arena, from._impl_.pattern_.get_}; + break; + case kPut: + new (&_impl_.pattern_.put_) decltype(_impl_.pattern_.put_){arena, from._impl_.pattern_.put_}; + break; + case kPost: + new (&_impl_.pattern_.post_) decltype(_impl_.pattern_.post_){arena, from._impl_.pattern_.post_}; + break; + case kDelete: + new (&_impl_.pattern_.delete__) decltype(_impl_.pattern_.delete__){arena, from._impl_.pattern_.delete__}; + break; + case kPatch: + new (&_impl_.pattern_.patch_) decltype(_impl_.pattern_.patch_){arena, from._impl_.pattern_.patch_}; + break; + case kCustom: + _impl_.pattern_.custom_ = ::google::protobuf::Message::CopyConstruct<::google::api::CustomHttpPattern>(arena, *from._impl_.pattern_.custom_); + break; } + // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) } +inline PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : additional_bindings_{visibility, arena}, + selector_(arena), + body_(arena), + response_body_(arena), + pattern_{}, + _cached_size_{0}, + _oneof_case_{} {} inline void HttpRule::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.additional_bindings_){arena} - , decltype(_impl_.selector_) {} - - , decltype(_impl_.body_) {} - - , decltype(_impl_.response_body_) {} - - , decltype(_impl_.pattern_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{} - }; - _impl_.selector_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.selector_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.body_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.body_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.response_body_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.response_body_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - clear_has_pattern(); + new (&_impl_) Impl_(internal_visibility(), arena); } - HttpRule::~HttpRule() { // @@protoc_insertion_point(destructor:google.api.HttpRule) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void HttpRule::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_additional_bindings()->~RepeatedPtrField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.selector_.Destroy(); _impl_.body_.Destroy(); _impl_.response_body_.Destroy(); if (has_pattern()) { clear_pattern(); } -} - -void HttpRule::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _impl_.~Impl_(); } void HttpRule::clear_pattern() { // @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); switch (pattern_case()) { case kGet: { _impl_.pattern_.get_.Destroy(); @@ -614,7 +569,7 @@ void HttpRule::clear_pattern() { break; } case kCustom: { - if (GetArenaForAllocation() == nullptr) { + if (GetArena() == nullptr) { delete _impl_.pattern_.custom_; } break; @@ -627,246 +582,217 @@ void HttpRule::clear_pattern() { } -void HttpRule::Clear() { +const ::google::protobuf::MessageLite::ClassData* +HttpRule::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._cached_size_), + false, + }, + &HttpRule::MergeImpl, + &HttpRule::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void HttpRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpRule) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_additional_bindings()->Clear(); + _impl_.additional_bindings_.Clear(); _impl_.selector_.ClearToEmpty(); _impl_.body_.ClearToEmpty(); _impl_.response_body_.ClearToEmpty(); clear_pattern(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* HttpRule::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string selector = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_selector(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.selector")); - } else { - goto handle_unusual; - } - continue; - // string get = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_get(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.get")); - } else { - goto handle_unusual; - } - continue; - // string put = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_put(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.put")); - } else { - goto handle_unusual; - } - continue; - // string post = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_post(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.post")); - } else { - goto handle_unusual; - } - continue; - // string delete = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - auto str = _internal_mutable_delete_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.delete")); - } else { - goto handle_unusual; - } - continue; - // string patch = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_patch(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.patch")); - } else { - goto handle_unusual; - } - continue; - // string body = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_body(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.body")); - } else { - goto handle_unusual; - } - continue; - // .google.api.CustomHttpPattern custom = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_custom(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.api.HttpRule additional_bindings = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_additional_bindings(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else { - goto handle_unusual; - } - continue; - // string response_body = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) { - auto str = _internal_mutable_response_body(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.HttpRule.response_body")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* HttpRule::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 10, 2, 82, 2> HttpRule::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 12, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963968, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_HttpRule_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::api::HttpRule>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string selector = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.api.HttpRule additional_bindings = 11; + {::_pbi::TcParser::FastMtR1, + {90, 63, 1, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_)}}, + // string response_body = 12; + {::_pbi::TcParser::FastUS1, + {98, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // string body = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string selector = 1; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string get = 2; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.get_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string put = 3; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.put_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string post = 4; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.post_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string delete = 5; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.delete__), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string patch = 6; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.patch_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string body = 7; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.api.CustomHttpPattern custom = 8; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.pattern_.custom_), _Internal::kOneofCaseOffset + 0, 0, + (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.api.HttpRule additional_bindings = 11; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_), 0, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // string response_body = 12; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::api::CustomHttpPattern>()}, + {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, + }}, {{ + "\23\10\3\3\4\6\5\4\0\0\15\0\0\0\0\0" + "google.api.HttpRule" + "selector" + "get" + "put" + "post" + "delete" + "patch" + "body" + "response_body" + }}, +}; + ::uint8_t* HttpRule::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string selector = 1; if (!this->_internal_selector().empty()) { const std::string& _s = this->_internal_selector(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.selector"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.selector"); target = stream->WriteStringMaybeAliased(1, _s, target); } switch (pattern_case()) { case kGet: { const std::string& _s = this->_internal_get(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.get"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.get"); target = stream->WriteStringMaybeAliased(2, _s, target); break; } case kPut: { const std::string& _s = this->_internal_put(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.put"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.put"); target = stream->WriteStringMaybeAliased(3, _s, target); break; } case kPost: { const std::string& _s = this->_internal_post(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.post"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.post"); target = stream->WriteStringMaybeAliased(4, _s, target); break; } case kDelete: { const std::string& _s = this->_internal_delete_(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.delete"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.delete"); target = stream->WriteStringMaybeAliased(5, _s, target); break; } case kPatch: { const std::string& _s = this->_internal_patch(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.patch"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.patch"); target = stream->WriteStringMaybeAliased(6, _s, target); break; } - default: ; + default: + break; } // string body = 7; if (!this->_internal_body().empty()) { const std::string& _s = this->_internal_body(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.body"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.body"); target = stream->WriteStringMaybeAliased(7, _s, target); } // .google.api.CustomHttpPattern custom = 8; if (pattern_case() == kCustom) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::custom(this), - _Internal::custom(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *_impl_.pattern_.custom_, _impl_.pattern_.custom_->GetCachedSize(), target, stream); } // repeated .google.api.HttpRule additional_bindings = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_additional_bindings_size()); i < n; i++) { - const auto& repfield = this->_internal_additional_bindings(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_additional_bindings_size()); + i < n; i++) { + const auto& repfield = this->_internal_additional_bindings().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, repfield, repfield.GetCachedSize(), + target, stream); } // string response_body = 12; if (!this->_internal_response_body().empty()) { const std::string& _s = this->_internal_response_body(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.response_body"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.HttpRule.response_body"); target = stream->WriteStringMaybeAliased(12, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule) return target; @@ -883,64 +809,61 @@ ::size_t HttpRule::ByteSizeLong() const { // repeated .google.api.HttpRule additional_bindings = 11; total_size += 1UL * this->_internal_additional_bindings_size(); for (const auto& msg : this->_internal_additional_bindings()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // string selector = 1; if (!this->_internal_selector().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_selector()); } // string body = 7; if (!this->_internal_body().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_body()); } // string response_body = 12; if (!this->_internal_response_body().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_response_body()); } switch (pattern_case()) { // string get = 2; case kGet: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_get()); break; } // string put = 3; case kPut: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_put()); break; } // string post = 4; case kPost: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_post()); break; } // string delete = 5; case kDelete: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_delete_()); break; } // string patch = 6; case kPatch: { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_patch()); break; } // .google.api.CustomHttpPattern custom = 8; case kCustom: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.pattern_.custom_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pattern_.custom_); break; } case PATTERN_NOT_SET: { @@ -950,22 +873,18 @@ ::size_t HttpRule::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HttpRule::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - HttpRule::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HttpRule::GetClassData() const { return &_class_data_; } - -void HttpRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_internal_mutable_additional_bindings()->MergeFrom(from._internal_additional_bindings()); + _this->_internal_mutable_additional_bindings()->MergeFrom( + from._internal_additional_bindings()); if (!from._internal_selector().empty()) { _this->_internal_set_selector(from._internal_selector()); } @@ -975,37 +894,66 @@ void HttpRule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO if (!from._internal_response_body().empty()) { _this->_internal_set_response_body(from._internal_response_body()); } - switch (from.pattern_case()) { - case kGet: { - _this->_internal_set_get(from._internal_get()); - break; - } - case kPut: { - _this->_internal_set_put(from._internal_put()); - break; - } - case kPost: { - _this->_internal_set_post(from._internal_post()); - break; - } - case kDelete: { - _this->_internal_set_delete_(from._internal_delete_()); - break; - } - case kPatch: { - _this->_internal_set_patch(from._internal_patch()); - break; - } - case kCustom: { - _this->_internal_mutable_custom()->::google::api::CustomHttpPattern::MergeFrom( - from._internal_custom()); - break; + if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; + const bool oneof_needs_init = oneof_to_case != oneof_from_case; + if (oneof_needs_init) { + if (oneof_to_case != 0) { + _this->clear_pattern(); + } + _this->_impl_._oneof_case_[0] = oneof_from_case; } - case PATTERN_NOT_SET: { - break; + + switch (oneof_from_case) { + case kGet: { + if (oneof_needs_init) { + _this->_impl_.pattern_.get_.InitDefault(); + } + _this->_impl_.pattern_.get_.Set(from._internal_get(), arena); + break; + } + case kPut: { + if (oneof_needs_init) { + _this->_impl_.pattern_.put_.InitDefault(); + } + _this->_impl_.pattern_.put_.Set(from._internal_put(), arena); + break; + } + case kPost: { + if (oneof_needs_init) { + _this->_impl_.pattern_.post_.InitDefault(); + } + _this->_impl_.pattern_.post_.Set(from._internal_post(), arena); + break; + } + case kDelete: { + if (oneof_needs_init) { + _this->_impl_.pattern_.delete__.InitDefault(); + } + _this->_impl_.pattern_.delete__.Set(from._internal_delete_(), arena); + break; + } + case kPatch: { + if (oneof_needs_init) { + _this->_impl_.pattern_.patch_.InitDefault(); + } + _this->_impl_.pattern_.patch_.Set(from._internal_patch(), arena); + break; + } + case kCustom: { + if (oneof_needs_init) { + _this->_impl_.pattern_.custom_ = + ::google::protobuf::Message::CopyConstruct<::google::api::CustomHttpPattern>(arena, *from._impl_.pattern_.custom_); + } else { + _this->_impl_.pattern_.custom_->MergeFrom(from._internal_custom()); + } + break; + } + case PATTERN_NOT_SET: + break; } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void HttpRule::CopyFrom(const HttpRule& from) { @@ -1015,30 +963,27 @@ void HttpRule::CopyFrom(const HttpRule& from) { MergeFrom(from); } -bool HttpRule::IsInitialized() const { +PROTOBUF_NOINLINE bool HttpRule::IsInitialized() const { return true; } -void HttpRule::InternalSwap(HttpRule* other) { +void HttpRule::InternalSwap(HttpRule* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_additional_bindings()->InternalSwap(other->_internal_mutable_additional_bindings()); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.selector_, lhs_arena, - &other->_impl_.selector_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, lhs_arena, - &other->_impl_.body_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_body_, lhs_arena, - &other->_impl_.response_body_, rhs_arena); + _impl_.additional_bindings_.InternalSwap(&other->_impl_.additional_bindings_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.selector_, &other->_impl_.selector_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.response_body_, &other->_impl_.response_body_, arena); swap(_impl_.pattern_, other->_impl_.pattern_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } -::PROTOBUF_NAMESPACE_ID::Metadata HttpRule::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, - file_level_metadata_google_2fapi_2fhttp_2eproto[1]); +::google::protobuf::Metadata HttpRule::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto_getter, + &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[1]); } // =================================================================== @@ -1046,164 +991,155 @@ class CustomHttpPattern::_Internal { public: }; -CustomHttpPattern::CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } -CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - CustomHttpPattern* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.kind_) {} +inline PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : kind_(arena, from.kind_), + path_(arena, from.path_), + _cached_size_{0} {} + +CustomHttpPattern::CustomHttpPattern( + ::google::protobuf::Arena* arena, + const CustomHttpPattern& from) + : ::google::protobuf::Message(arena) { + CustomHttpPattern* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - , decltype(_impl_.path_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.kind_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.kind_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_kind().empty()) { - _this->_impl_.kind_.Set(from._internal_kind(), _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_path().empty()) { - _this->_impl_.path_.Set(from._internal_path(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } +inline PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : kind_(arena), + path_(arena), + _cached_size_{0} {} inline void CustomHttpPattern::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.kind_) {} - - , decltype(_impl_.path_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.kind_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.kind_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - CustomHttpPattern::~CustomHttpPattern() { // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void CustomHttpPattern::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.kind_.Destroy(); _impl_.path_.Destroy(); + _impl_.~Impl_(); } -void CustomHttpPattern::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +const ::google::protobuf::MessageLite::ClassData* +CustomHttpPattern::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._cached_size_), + false, + }, + &CustomHttpPattern::MergeImpl, + &CustomHttpPattern::kDescriptorMethods, + }; + return &_data_; } - -void CustomHttpPattern::Clear() { +PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.kind_.ClearToEmpty(); _impl_.path_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* CustomHttpPattern::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string kind = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_kind(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.kind")); - } else { - goto handle_unusual; - } - continue; - // string path = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "google.api.CustomHttpPattern.path")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* CustomHttpPattern::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 45, 2> CustomHttpPattern::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_CustomHttpPattern_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::google::api::CustomHttpPattern>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string path = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, + // string kind = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string kind = 1; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string path = 2; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\34\4\4\0\0\0\0\0" + "google.api.CustomHttpPattern" + "kind" + "path" + }}, +}; + ::uint8_t* CustomHttpPattern::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string kind = 1; if (!this->_internal_kind().empty()) { const std::string& _s = this->_internal_kind(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.kind"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.kind"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string path = 2; if (!this->_internal_path().empty()) { const std::string& _s = this->_internal_path(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.path"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.api.CustomHttpPattern.path"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern) return target; @@ -1219,27 +1155,21 @@ ::size_t CustomHttpPattern::ByteSizeLong() const { // string kind = 1; if (!this->_internal_kind().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_kind()); } // string path = 2; if (!this->_internal_path().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_path()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CustomHttpPattern::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CustomHttpPattern::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CustomHttpPattern::GetClassData() const { return &_class_data_; } - -void CustomHttpPattern::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) @@ -1253,7 +1183,7 @@ void CustomHttpPattern::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (!from._internal_path().empty()) { _this->_internal_set_path(from._internal_path()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { @@ -1263,42 +1193,34 @@ void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { MergeFrom(from); } -bool CustomHttpPattern::IsInitialized() const { +PROTOBUF_NOINLINE bool CustomHttpPattern::IsInitialized() const { return true; } -void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) { +void CustomHttpPattern::InternalSwap(CustomHttpPattern* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kind_, lhs_arena, - &other->_impl_.kind_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kind_, &other->_impl_.kind_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata CustomHttpPattern::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_google_2fapi_2fhttp_2eproto_getter, &descriptor_table_google_2fapi_2fhttp_2eproto_once, - file_level_metadata_google_2fapi_2fhttp_2eproto[2]); +::google::protobuf::Metadata CustomHttpPattern::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto_getter, + &descriptor_table_google_2fapi_2fhttp_2eproto_once, + file_level_metadata_google_2fapi_2fhttp_2eproto[2]); } // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::google::api::Http* -Arena::CreateMaybeMessage< ::google::api::Http >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::api::Http >(arena); -} -template<> PROTOBUF_NOINLINE ::google::api::HttpRule* -Arena::CreateMaybeMessage< ::google::api::HttpRule >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::api::HttpRule >(arena); -} -template<> PROTOBUF_NOINLINE ::google::api::CustomHttpPattern* -Arena::CreateMaybeMessage< ::google::api::CustomHttpPattern >(Arena* arena) { - return Arena::CreateMessageInternal< ::google::api::CustomHttpPattern >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_google_2fapi_2fhttp_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc index a109970732..0702d6c049 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protoc-gen-openapiv2/options/annotations.proto +// Protobuf C++ Version: 5.26.1 #include "protoc-gen-openapiv2/options/annotations.pb.h" @@ -26,13 +27,15 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { @@ -48,7 +51,8 @@ static constexpr const ::_pb::ServiceDescriptor** const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; -const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n.protoc-gen-openapiv2/options/annotatio" "ns.proto\022)grpc.gateway.protoc_gen_openap" "iv2.options\032 google/protobuf/descriptor." @@ -109,34 +113,67 @@ const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2dopenapiv2_2foption PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_getter() { return &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto); namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, 11, false> - openapiv2_swagger(kOpenapiv2SwaggerFieldNumber, ::grpc::gateway::protoc_gen_openapiv2::options::Swagger::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MethodOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, 11, false> - openapiv2_operation(kOpenapiv2OperationFieldNumber, ::grpc::gateway::protoc_gen_openapiv2::options::Operation::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, 11, false> - openapiv2_schema(kOpenapiv2SchemaFieldNumber, ::grpc::gateway::protoc_gen_openapiv2::options::Schema::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::ServiceOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, 11, false> - openapiv2_tag(kOpenapiv2TagFieldNumber, ::grpc::gateway::protoc_gen_openapiv2::options::Tag::default_instance(), nullptr); -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, 11, false> - openapiv2_field(kOpenapiv2FieldFieldNumber, ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema::default_instance(), nullptr); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::FileOptions, ::_pbi::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, + 11, false> + openapiv2_swagger(kOpenapiv2SwaggerFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_Swagger_default_instance_); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::MethodOptions, ::_pbi::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, + 11, false> + openapiv2_operation(kOpenapiv2OperationFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_default_instance_); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::MessageOptions, ::_pbi::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, + 11, false> + openapiv2_schema(kOpenapiv2SchemaFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_Schema_default_instance_); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::ServiceOptions, ::_pbi::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, + 11, false> + openapiv2_tag(kOpenapiv2TagFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_Tag_default_instance_); +PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::_pbi:: + ExtensionIdentifier<::google::protobuf::FieldOptions, ::_pbi::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, + 11, false> + openapiv2_field(kOpenapiv2FieldFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_); // @@protoc_insertion_point(namespace_scope) } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::FileOptions::default_instance(), 1042, 11, + false, false, &::grpc::gateway::protoc_gen_openapiv2::options::Swagger::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::MethodOptions::default_instance(), 1042, 11, + false, false, &::grpc::gateway::protoc_gen_openapiv2::options::Operation::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::MessageOptions::default_instance(), 1042, 11, + false, false, &::grpc::gateway::protoc_gen_openapiv2::options::Schema::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::ServiceOptions::default_instance(), 1042, 11, + false, false, &::grpc::gateway::protoc_gen_openapiv2::options::Tag::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::_pbi::ExtensionSet::RegisterMessageExtension( + &::google::protobuf::FieldOptions::default_instance(), 1042, 11, + false, false, &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema::default_instance(), + nullptr, ::_pbi::LazyAnnotation::kUndefined), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc index 5f8fcd17ad..fdaafe8650 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc @@ -15,6 +15,7 @@ // This code was autogenerated. Do not edit directly. // Generated by the protocol buffer compiler. DO NOT EDIT! // source: protoc-gen-openapiv2/options/openapiv2.proto +// Protobuf C++ Version: 5.26.1 #include "protoc-gen-openapiv2/options/openapiv2.pb.h" @@ -26,170 +27,130 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal; +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -template -PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() {} - union { - Swagger_ResponsesEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; +inline constexpr SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : scope_{}, + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() {} union { - Swagger_ExtensionsEntry_DoNotUse _instance; + SecurityRequirement_SecurityRequirementValue _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Swagger::Swagger( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.schemes_)*/ {} - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , /*decltype(_impl_.consumes_)*/{} - , /*decltype(_impl_.produces_)*/{} - , /*decltype(_impl_.responses_)*/{} - , /*decltype(_impl_.security_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.swagger_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.host_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.base_path_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.info_)*/nullptr - , /*decltype(_impl_.security_definitions_)*/nullptr - , /*decltype(_impl_.external_docs_)*/nullptr} {} -struct SwaggerDefaultTypeInternal { - PROTOBUF_CONSTEXPR SwaggerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SwaggerDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; + template +PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() {} union { - Swagger _instance; + Scopes_ScopeEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SwaggerDefaultTypeInternal _Swagger_default_instance_; -template -PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Response_ExamplesEntry_DoNotUseDefaultTypeInternal() {} union { - Operation_ResponsesEntry_DoNotUse _instance; + Response_ExamplesEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; + +inline constexpr License::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR License::License(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct LicenseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LicenseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LicenseDefaultTypeInternal() {} union { - Operation_ExtensionsEntry_DoNotUse _instance; + License _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Operation::Operation( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.tags_)*/{} - , /*decltype(_impl_.consumes_)*/{} - , /*decltype(_impl_.produces_)*/{} - , /*decltype(_impl_.responses_)*/{} - , /*decltype(_impl_.schemes_)*/ {} - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , /*decltype(_impl_.security_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.summary_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LicenseDefaultTypeInternal _License_default_instance_; - , /*decltype(_impl_.operation_id_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr JSONSchema_FieldConfiguration::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : path_param_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} - , /*decltype(_impl_.external_docs_)*/nullptr - , /*decltype(_impl_.deprecated_)*/ false -} {} -struct OperationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OperationDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct JSONSchema_FieldConfigurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR JSONSchema_FieldConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JSONSchema_FieldConfigurationDefaultTypeInternal() {} union { - Operation _instance; + JSONSchema_FieldConfiguration _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; -template -PROTOBUF_CONSTEXPR Header::Header( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.type_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.format_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.default__)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; - , /*decltype(_impl_.pattern_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr Header::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + format_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + default__( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pattern_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} +template +PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct HeaderDefaultTypeInternal { PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~HeaderDefaultTypeInternal() {} @@ -200,233 +161,172 @@ struct HeaderDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; -template -PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Response_HeadersEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} - union { - Response_HeadersEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_HeadersEntry_DoNotUseDefaultTypeInternal _Response_HeadersEntry_DoNotUse_default_instance_; +inline constexpr ExternalDocumentation::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_ExamplesEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR ExternalDocumentation::ExternalDocumentation(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ExternalDocumentationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExternalDocumentationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ExternalDocumentationDefaultTypeInternal() {} union { - Response_ExamplesEntry_DoNotUse _instance; + ExternalDocumentation _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; + +inline constexpr Contact::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + email_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + _cached_size_{0} {} + template -PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Contact::Contact(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ContactDefaultTypeInternal { + PROTOBUF_CONSTEXPR ContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ContactDefaultTypeInternal() {} union { - Response_ExtensionsEntry_DoNotUse _instance; + Contact _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactDefaultTypeInternal _Contact_default_instance_; + +inline constexpr Tag::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + external_docs_{nullptr} {} + template -PROTOBUF_CONSTEXPR Response::Response( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.headers_)*/{} - , /*decltype(_impl_.examples_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.schema_)*/nullptr} {} -struct ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Tag::Tag(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct TagDefaultTypeInternal { + PROTOBUF_CONSTEXPR TagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TagDefaultTypeInternal() {} union { - Response _instance; + Tag _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; -template -PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TagDefaultTypeInternal _Tag_default_instance_; + template +PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - Info_ExtensionsEntry_DoNotUse _instance; + Swagger_ExtensionsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Info::Info( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.title_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.terms_of_service_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.version_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.contact_)*/nullptr - , /*decltype(_impl_.license_)*/nullptr} {} -struct InfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR InfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InfoDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - Info _instance; + SecurityScheme_ExtensionsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InfoDefaultTypeInternal _Info_default_instance_; -template -PROTOBUF_CONSTEXPR Contact::Contact( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.email_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ContactDefaultTypeInternal { - PROTOBUF_CONSTEXPR ContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ContactDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() {} union { - Contact _instance; + SecurityRequirement_SecurityRequirementEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactDefaultTypeInternal _Contact_default_instance_; -template -PROTOBUF_CONSTEXPR License::License( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; - , /*decltype(_impl_.url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } +inline constexpr Scopes::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : scope_{}, + _cached_size_{0} {} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct LicenseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LicenseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LicenseDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR Scopes::Scopes(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ScopesDefaultTypeInternal { + PROTOBUF_CONSTEXPR ScopesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ScopesDefaultTypeInternal() {} union { - License _instance; + Scopes _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LicenseDefaultTypeInternal _License_default_instance_; -template -PROTOBUF_CONSTEXPR ExternalDocumentation::ExternalDocumentation( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ExternalDocumentationDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExternalDocumentationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExternalDocumentationDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScopesDefaultTypeInternal _Scopes_default_instance_; + template +PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Response_HeadersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} union { - ExternalDocumentation _instance; + Response_HeadersEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; -template -PROTOBUF_CONSTEXPR Schema::Schema( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.discriminator_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.example_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.json_schema_)*/nullptr - , /*decltype(_impl_.external_docs_)*/nullptr - , /*decltype(_impl_.read_only_)*/ false -} {} -struct SchemaDefaultTypeInternal { - PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SchemaDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_HeadersEntry_DoNotUseDefaultTypeInternal _Response_HeadersEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - Schema _instance; + Response_ExtensionsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; -template -PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.path_param_name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_._cached_size_)*/{}} {} -struct JSONSchema_FieldConfigurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR JSONSchema_FieldConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JSONSchema_FieldConfigurationDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - JSONSchema_FieldConfiguration _instance; + Operation_ExtensionsEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; -template -PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal { PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} @@ -437,73 +337,121 @@ struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal _JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR JSONSchema::JSONSchema( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.required_)*/{} - , /*decltype(_impl_.array_)*/{} - , /*decltype(_impl_.type_)*/ {} - , /*decltype(_impl_._type_cached_byte_size_)*/ { 0 } - - , /*decltype(_impl_.enum__)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.ref_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.title_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.default__)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.example_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.pattern_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.format_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.field_configuration_)*/nullptr - , /*decltype(_impl_.multiple_of_)*/ 0 - - , /*decltype(_impl_.maximum_)*/ 0 - - , /*decltype(_impl_.minimum_)*/ 0 - - , /*decltype(_impl_.max_length_)*/ ::uint64_t{0u} + template +PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + Info_ExtensionsEntry_DoNotUse _instance; + }; +}; - , /*decltype(_impl_.min_length_)*/ ::uint64_t{0u} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; - , /*decltype(_impl_.max_items_)*/ ::uint64_t{0u} +inline constexpr SecurityScheme::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + extensions_{}, + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + authorization_url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + token_url_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + scopes_{nullptr}, + type_{static_cast< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type >(0)}, + in_{static_cast< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In >(0)}, + flow_{static_cast< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow >(0)} {} - , /*decltype(_impl_.min_items_)*/ ::uint64_t{0u} +template +PROTOBUF_CONSTEXPR SecurityScheme::SecurityScheme(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SecuritySchemeDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecuritySchemeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecuritySchemeDefaultTypeInternal() {} + union { + SecurityScheme _instance; + }; +}; - , /*decltype(_impl_.max_properties_)*/ ::uint64_t{0u} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; - , /*decltype(_impl_.min_properties_)*/ ::uint64_t{0u} +inline constexpr SecurityRequirement::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : security_requirement_{}, + _cached_size_{0} {} - , /*decltype(_impl_.read_only_)*/ false +template +PROTOBUF_CONSTEXPR SecurityRequirement::SecurityRequirement(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SecurityRequirementDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirementDefaultTypeInternal() {} + union { + SecurityRequirement _instance; + }; +}; - , /*decltype(_impl_.exclusive_maximum_)*/ false +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; - , /*decltype(_impl_.exclusive_minimum_)*/ false +inline constexpr JSONSchema::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + required_{}, + array_{}, + type_{}, + _type_cached_byte_size_{0}, + enum__{}, + extensions_{}, + ref_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + title_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + default__( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + example_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pattern_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + format_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + field_configuration_{nullptr}, + multiple_of_{0}, + maximum_{0}, + minimum_{0}, + max_length_{::uint64_t{0u}}, + min_length_{::uint64_t{0u}}, + max_items_{::uint64_t{0u}}, + min_items_{::uint64_t{0u}}, + max_properties_{::uint64_t{0u}}, + min_properties_{::uint64_t{0u}}, + read_only_{false}, + exclusive_maximum_{false}, + exclusive_minimum_{false}, + unique_items_{false} {} - , /*decltype(_impl_.unique_items_)*/ false -} {} +template +PROTOBUF_CONSTEXPR JSONSchema::JSONSchema(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} struct JSONSchemaDefaultTypeInternal { PROTOBUF_CONSTEXPR JSONSchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~JSONSchemaDefaultTypeInternal() {} @@ -514,29 +462,41 @@ struct JSONSchemaDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchemaDefaultTypeInternal _JSONSchema_default_instance_; -template -PROTOBUF_CONSTEXPR Tag::Tag( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - , /*decltype(_impl_.external_docs_)*/nullptr} {} -struct TagDefaultTypeInternal { - PROTOBUF_CONSTEXPR TagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TagDefaultTypeInternal() {} +inline constexpr Info::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + extensions_{}, + title_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + terms_of_service_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + version_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + contact_{nullptr}, + license_{nullptr} {} + +template +PROTOBUF_CONSTEXPR Info::Info(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct InfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR InfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InfoDefaultTypeInternal() {} union { - Tag _instance; + Info _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TagDefaultTypeInternal _Tag_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InfoDefaultTypeInternal _Info_default_instance_; + template +PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::_pbi::ConstantInitialized) {} struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal { PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() {} @@ -547,144 +507,175 @@ struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal _SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityDefinitions::SecurityDefinitions( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.security_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SecurityDefinitionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityDefinitionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityDefinitionsDefaultTypeInternal() {} - union { - SecurityDefinitions _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityDefinitionsDefaultTypeInternal _SecurityDefinitions_default_instance_; +inline constexpr Schema::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + discriminator_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + example_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + json_schema_{nullptr}, + external_docs_{nullptr}, + read_only_{false} {} + template -PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Schema::Schema(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SchemaDefaultTypeInternal() {} union { - SecurityScheme_ExtensionsEntry_DoNotUse _instance; + Schema _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityScheme::SecurityScheme( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , /*decltype(_impl_.description_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.authorization_url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.token_url_)*/ { - &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} - } - - , /*decltype(_impl_.scopes_)*/nullptr - , /*decltype(_impl_.type_)*/ 0 + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; - , /*decltype(_impl_.in_)*/ 0 +inline constexpr SecurityDefinitions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : security_{}, + _cached_size_{0} {} - , /*decltype(_impl_.flow_)*/ 0 -} {} -struct SecuritySchemeDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecuritySchemeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecuritySchemeDefaultTypeInternal() {} +template +PROTOBUF_CONSTEXPR SecurityDefinitions::SecurityDefinitions(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SecurityDefinitionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityDefinitionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityDefinitionsDefaultTypeInternal() {} union { - SecurityScheme _instance; + SecurityDefinitions _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityDefinitionsDefaultTypeInternal _SecurityDefinitions_default_instance_; + +inline constexpr Response::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + headers_{}, + examples_{}, + extensions_{}, + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + schema_{nullptr} {} + template -PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.scope_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseDefaultTypeInternal() {} union { - SecurityRequirement_SecurityRequirementValue _instance; + Response _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; + template +PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() {} union { - SecurityRequirement_SecurityRequirementEntry_DoNotUse _instance; + Swagger_ResponsesEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityRequirement::SecurityRequirement( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.security_requirement_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SecurityRequirementDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirementDefaultTypeInternal() {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) {} +struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() {} union { - SecurityRequirement _instance; + Operation_ResponsesEntry_DoNotUse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; + +inline constexpr Swagger::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + schemes_{}, + _schemes_cached_byte_size_{0}, + consumes_{}, + produces_{}, + responses_{}, + security_{}, + extensions_{}, + swagger_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + host_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + base_path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + info_{nullptr}, + security_definitions_{nullptr}, + external_docs_{nullptr} {} + template -PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Swagger::Swagger(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct SwaggerDefaultTypeInternal { + PROTOBUF_CONSTEXPR SwaggerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SwaggerDefaultTypeInternal() {} union { - Scopes_ScopeEntry_DoNotUse _instance; + Swagger _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SwaggerDefaultTypeInternal _Swagger_default_instance_; + +inline constexpr Operation::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + tags_{}, + consumes_{}, + produces_{}, + responses_{}, + schemes_{}, + _schemes_cached_byte_size_{0}, + security_{}, + extensions_{}, + summary_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + description_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + operation_id_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + external_docs_{nullptr}, + deprecated_{false} {} + template -PROTOBUF_CONSTEXPR Scopes::Scopes( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.scope_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ScopesDefaultTypeInternal { - PROTOBUF_CONSTEXPR ScopesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ScopesDefaultTypeInternal() {} +PROTOBUF_CONSTEXPR Operation::Operation(::_pbi::ConstantInitialized) + : _impl_(::_pbi::ConstantInitialized()) {} +struct OperationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OperationDefaultTypeInternal() {} union { - Scopes _instance; + Operation _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScopesDefaultTypeInternal _Scopes_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway @@ -693,509 +684,509 @@ static ::_pb::Metadata file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2f static const ::_pb::EnumDescriptor* file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[5]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto = nullptr; -const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.swagger_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.info_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.host_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.base_path_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_definitions_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.external_docs_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - ~0u, - 2, - ~0u, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.summary_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.external_docs_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.operation_id_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.deprecated_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_), - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.default__), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.schema_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.title_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.terms_of_service_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.contact_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.license_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_), - ~0u, - ~0u, - ~0u, - 0, - 1, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _impl_.url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _impl_.url_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.json_schema_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.discriminator_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.read_only_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.external_docs_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.example_), - 0, - ~0u, - ~0u, - 1, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration, _impl_.path_param_name_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.ref_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.title_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.default__), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.read_only_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.example_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.multiple_of_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.maximum_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.exclusive_maximum_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.minimum_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.exclusive_minimum_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_length_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_length_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_items_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_items_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.unique_items_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_properties_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_properties_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.format_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.field_configuration_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_.external_docs_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.in_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.flow_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.authorization_url_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.token_url_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.scopes_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_), +const ::uint32_t + TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.swagger_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.info_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.host_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.base_path_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_definitions_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.external_docs_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_), + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 1, + ~0u, + 2, + ~0u, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.summary_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.external_docs_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.operation_id_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.deprecated_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_), + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.format_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.default__), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.schema_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_), + ~0u, + 0, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.terms_of_service_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.contact_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.license_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_), + ~0u, + ~0u, + ~0u, + 0, + 1, + ~0u, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_.email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::License, _impl_.url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.json_schema_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.discriminator_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.read_only_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.external_docs_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Schema, _impl_.example_), + 0, + ~0u, + ~0u, + 1, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration, _impl_.path_param_name_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.ref_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.default__), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.read_only_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.example_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.multiple_of_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.maximum_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.exclusive_maximum_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.minimum_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.exclusive_minimum_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_length_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_length_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_items_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_items_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.unique_items_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.max_properties_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.min_properties_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.format_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.field_configuration_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_.external_docs_), + ~0u, + 0, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.in_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.flow_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.authorization_url_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.token_url_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.scopes_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_), + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + 0, + ~0u, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_), }; static const ::_pbi::MigrationSchema - schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 10, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse)}, - { 12, 22, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse)}, - { 24, 44, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger)}, - { 56, 66, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse)}, - { 68, 78, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse)}, - { 80, 100, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation)}, - { 112, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Header)}, - { 125, 135, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse)}, - { 137, 147, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse)}, - { 149, 159, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse)}, - { 161, 174, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response)}, - { 179, 189, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse)}, - { 191, 206, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Info)}, - { 213, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Contact)}, - { 224, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::License)}, - { 234, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation)}, - { 244, 257, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Schema)}, - { 262, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration)}, - { 271, 281, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse)}, - { 283, 317, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema)}, - { 343, 353, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Tag)}, - { 355, 365, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse)}, - { 367, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions)}, - { 376, 386, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, - { 388, 405, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, - { 414, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, - { 423, 433, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, - { 435, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, - { 444, 454, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, - { 456, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse)}, + {12, 22, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse)}, + {24, 44, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Swagger)}, + {56, 66, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse)}, + {68, 78, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse)}, + {80, 100, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Operation)}, + {112, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Header)}, + {125, 135, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse)}, + {137, 147, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse)}, + {149, 159, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse)}, + {161, 174, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Response)}, + {179, 189, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse)}, + {191, 206, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Info)}, + {213, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Contact)}, + {224, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::License)}, + {234, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation)}, + {244, 257, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Schema)}, + {262, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration)}, + {271, 281, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse)}, + {283, 317, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema)}, + {343, 353, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Tag)}, + {355, 365, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse)}, + {367, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions)}, + {376, 386, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, + {388, 405, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, + {414, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, + {423, 433, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, + {435, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, + {444, 454, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, + {456, -1, -1, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, }; - static const ::_pb::Message* const file_default_instances[] = { &::grpc::gateway::protoc_gen_openapiv2::options::_Swagger_ResponsesEntry_DoNotUse_default_instance_._instance, &::grpc::gateway::protoc_gen_openapiv2::options::_Swagger_ExtensionsEntry_DoNotUse_default_instance_._instance, @@ -1228,7 +1219,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_ScopeEntry_DoNotUse_default_instance_._instance, &::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_default_instance_._instance, }; -const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { "\n,protoc-gen-openapiv2/options/openapiv2" ".proto\022)grpc.gateway.protoc_gen_openapiv" "2.options\032\034google/protobuf/struct.proto\"" @@ -1420,31 +1412,18 @@ const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2dopenapiv2_2foption PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter() { return &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; } -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JSONSchema_JSONSchemaSimpleTypes_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); +const ::google::protobuf::EnumDescriptor* JSONSchema_JSONSchemaSimpleTypes_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); return file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t JSONSchema_JSONSchemaSimpleTypes_internal_data_[] = { + 524288u, 0u, }; bool JSONSchema_JSONSchemaSimpleTypes_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; - } + return 0 <= value && value <= 7; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1463,20 +1442,14 @@ constexpr int JSONSchema::JSONSchemaSimpleTypes_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SecurityScheme_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); +const ::google::protobuf::EnumDescriptor* SecurityScheme_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); return file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t SecurityScheme_Type_internal_data_[] = { + 262144u, 0u, }; bool SecurityScheme_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1491,19 +1464,14 @@ constexpr int SecurityScheme::Type_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SecurityScheme_In_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); +const ::google::protobuf::EnumDescriptor* SecurityScheme_In_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); return file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[2]; } +PROTOBUF_CONSTINIT const uint32_t SecurityScheme_In_internal_data_[] = { + 196608u, 0u, }; bool SecurityScheme_In_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1517,21 +1485,14 @@ constexpr int SecurityScheme::In_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SecurityScheme_Flow_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); +const ::google::protobuf::EnumDescriptor* SecurityScheme_Flow_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); return file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[3]; } +PROTOBUF_CONSTINIT const uint32_t SecurityScheme_Flow_internal_data_[] = { + 327680u, 0u, }; bool SecurityScheme_Flow_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } + return 0 <= value && value <= 4; } #if (__cplusplus < 201703) && \ (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) @@ -1547,47 +1508,34 @@ constexpr int SecurityScheme::Flow_ARRAYSIZE; #endif // (__cplusplus < 201703) && // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Scheme_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); +const ::google::protobuf::EnumDescriptor* Scheme_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto); return file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[4]; } +PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { + 327680u, 0u, }; bool Scheme_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } + return 0 <= value && value <= 4; } // =================================================================== Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() {} -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Swagger_ResponsesEntry_DoNotUse::MergeFrom(const Swagger_ResponsesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Swagger_ResponsesEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[0]); +::google::protobuf::Metadata Swagger_ResponsesEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[0]); } // =================================================================== Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() {} -Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Swagger_ExtensionsEntry_DoNotUse::MergeFrom(const Swagger_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Swagger_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[1]); +::google::protobuf::Metadata Swagger_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[1]); } // =================================================================== @@ -1596,177 +1544,121 @@ class Swagger::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info(const Swagger* msg); - static void set_has_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions(const Swagger* msg); - static void set_has_security_definitions(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs(const Swagger* msg); - static void set_has_external_docs(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::Info& -Swagger::_Internal::info(const Swagger* msg) { - return *msg->_impl_.info_; -} -const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& -Swagger::_Internal::security_definitions(const Swagger* msg) { - return *msg->_impl_.security_definitions_; -} -const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& -Swagger::_Internal::external_docs(const Swagger* msg) { - return *msg->_impl_.external_docs_; -} void Swagger::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.extensions_.Clear(); } -Swagger::Swagger(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Swagger::Swagger(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } -Swagger::Swagger(const Swagger& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Swagger* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.schemes_) { from._internal_schemes() } - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.consumes_){from._impl_.consumes_} - , decltype(_impl_.produces_){from._impl_.produces_} - , /*decltype(_impl_.responses_)*/{} - , decltype(_impl_.security_){from._impl_.security_} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.swagger_) {} - - , decltype(_impl_.host_) {} +inline PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + schemes_{visibility, arena, from.schemes_}, + _schemes_cached_byte_size_{0}, + consumes_{visibility, arena, from.consumes_}, + produces_{visibility, arena, from.produces_}, + responses_{visibility, arena, from.responses_}, + security_{visibility, arena, from.security_}, + extensions_{visibility, arena, from.extensions_}, + swagger_(arena, from.swagger_), + host_(arena, from.host_), + base_path_(arena, from.base_path_) {} + +Swagger::Swagger( + ::google::protobuf::Arena* arena, + const Swagger& from) + : ::google::protobuf::Message(arena) { + Swagger* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Info>( + arena, *from._impl_.info_) + : nullptr; + _impl_.security_definitions_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>( + arena, *from._impl_.security_definitions_) + : nullptr; + _impl_.external_docs_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>( + arena, *from._impl_.external_docs_) + : nullptr; - , decltype(_impl_.base_path_) {} - - , decltype(_impl_.info_){nullptr} - , decltype(_impl_.security_definitions_){nullptr} - , decltype(_impl_.external_docs_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.responses_.MergeFrom(from._impl_.responses_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.swagger_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.swagger_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_swagger().empty()) { - _this->_impl_.swagger_.Set(from._internal_swagger(), _this->GetArenaForAllocation()); - } - _impl_.host_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.host_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_host().empty()) { - _this->_impl_.host_.Set(from._internal_host(), _this->GetArenaForAllocation()); - } - _impl_.base_path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.base_path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_base_path().empty()) { - _this->_impl_.base_path_.Set(from._internal_base_path(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.info_ = new ::grpc::gateway::protoc_gen_openapiv2::options::Info(*from._impl_.info_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.security_definitions_ = new ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions(*from._impl_.security_definitions_); - } - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.external_docs_ = new ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation(*from._impl_.external_docs_); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } +inline PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + schemes_{visibility, arena}, + _schemes_cached_byte_size_{0}, + consumes_{visibility, arena}, + produces_{visibility, arena}, + responses_{visibility, arena}, + security_{visibility, arena}, + extensions_{visibility, arena}, + swagger_(arena), + host_(arena), + base_path_(arena) {} inline void Swagger::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.schemes_) { arena } - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.consumes_){arena} - , decltype(_impl_.produces_){arena} - , /*decltype(_impl_.responses_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.security_){arena} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.swagger_) {} - - , decltype(_impl_.host_) {} - - , decltype(_impl_.base_path_) {} - - , decltype(_impl_.info_){nullptr} - , decltype(_impl_.security_definitions_){nullptr} - , decltype(_impl_.external_docs_){nullptr} - }; - _impl_.swagger_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.swagger_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.host_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.host_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.base_path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.base_path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, info_), + 0, + offsetof(Impl_, external_docs_) - + offsetof(Impl_, info_) + + sizeof(Impl_::external_docs_)); } - Swagger::~Swagger() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Swagger::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_schemes()->~RepeatedField(); - _internal_mutable_consumes()->~RepeatedPtrField(); - _internal_mutable_produces()->~RepeatedPtrField(); - _impl_.responses_.~MapField(); - _internal_mutable_security()->~RepeatedPtrField(); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.swagger_.Destroy(); _impl_.host_.Destroy(); _impl_.base_path_.Destroy(); - if (this != internal_default_instance()) delete _impl_.info_; - if (this != internal_default_instance()) delete _impl_.security_definitions_; - if (this != internal_default_instance()) delete _impl_.external_docs_; -} - -void Swagger::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Swagger::Clear() { + delete _impl_.info_; + delete _impl_.security_definitions_; + delete _impl_.external_docs_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Swagger::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Swagger, _impl_._cached_size_), + false, + }, + &Swagger::MergeImpl, + &Swagger::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Swagger::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_schemes()->Clear(); - _internal_mutable_consumes()->Clear(); - _internal_mutable_produces()->Clear(); + _impl_.schemes_.Clear(); + _impl_.consumes_.Clear(); + _impl_.produces_.Clear(); _impl_.responses_.Clear(); - _internal_mutable_security()->Clear(); + _impl_.security_.Clear(); _impl_.extensions_.Clear(); _impl_.swagger_.ClearToEmpty(); _impl_.host_.ClearToEmpty(); @@ -1787,228 +1679,178 @@ void Swagger::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Swagger::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string swagger = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_swagger(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_info(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string host = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_host(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.host")); - } else { - goto handle_unusual; - } - continue; - // string base_path = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_base_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path")); - } else { - goto handle_unusual; - } - continue; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_schemes(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 40) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_add_schemes(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(val)); - } else { - goto handle_unusual; - } - continue; - // repeated string consumes = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_consumes(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated string produces = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_produces(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map responses = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.responses_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_security_definitions(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_security(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 114)) { - ptr = ctx->ParseMessage(_internal_mutable_external_docs(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // map extensions = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 122)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Swagger::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 8, 121, 2> Swagger::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_), + 0, // no _extensions_ + 15, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294939008, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Swagger_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string swagger = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)}}, + // string host = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_)}}, + // string base_path = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + {::_pbi::TcParser::FastV32P1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_)}}, + // repeated string consumes = 6; + {::_pbi::TcParser::FastUR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_)}}, + // repeated string produces = 7; + {::_pbi::TcParser::FastUR1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + {::_pbi::TcParser::FastMtS1, + {90, 1, 3, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 4, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + {::_pbi::TcParser::FastMtS1, + {114, 2, 5, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string swagger = 1; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string host = 3; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string base_path = 4; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // repeated string consumes = 6; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string produces = 7; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map responses = 10; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_), _Internal::kHasBitsOffset + 1, 3, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_), _Internal::kHasBitsOffset + 2, 5, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 15; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Swagger()._impl_.responses_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::grpc::gateway::protoc_gen_openapiv2::options::Response>}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>()}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Swagger()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\61\7\0\4\11\0\10\10\11\0\0\0\12\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Swagger" + "swagger" + "host" + "base_path" + "consumes" + "produces" + "responses" + "extensions" + }}, +}; + ::uint8_t* Swagger::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string swagger = 1; if (!this->_internal_swagger().empty()) { const std::string& _s = this->_internal_swagger(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger"); target = stream->WriteStringMaybeAliased(1, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::info(this), - _Internal::info(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.info_, _impl_.info_->GetCachedSize(), target, stream); } // string host = 3; if (!this->_internal_host().empty()) { const std::string& _s = this->_internal_host(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.host"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.host"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string base_path = 4; if (!this->_internal_base_path().empty()) { const std::string& _s = this->_internal_base_path(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path"); target = stream->WriteStringMaybeAliased(4, _s, target); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; { - int byte_size = _impl_._schemes_cached_byte_size_.Get(); + std::size_t byte_size = _impl_._schemes_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteEnumPacked(5, _internal_schemes(), byte_size, target); @@ -2017,95 +1859,101 @@ ::uint8_t* Swagger::_InternalSerialize( // repeated string consumes = 6; for (int i = 0, n = this->_internal_consumes_size(); i < n; ++i) { - const auto& s = this->_internal_consumes(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes"); + const auto& s = this->_internal_consumes().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes"); target = stream->WriteString(6, s, target); } // repeated string produces = 7; for (int i = 0, n = this->_internal_produces_size(); i < n; ++i) { - const auto& s = this->_internal_produces(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces"); + const auto& s = this->_internal_produces().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces"); target = stream->WriteString(7, s, target); } // map responses = 10; - if (!this->_internal_responses().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Swagger_ResponsesEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_responses(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_responses().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_responses(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses"); } } } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; if (cached_has_bits & 0x00000002u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, _Internal::security_definitions(this), - _Internal::security_definitions(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *_impl_.security_definitions_, _impl_.security_definitions_->GetCachedSize(), target, stream); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - for (unsigned i = 0, - n = static_cast(this->_internal_security_size()); i < n; i++) { - const auto& repfield = this->_internal_security(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_security_size()); + i < n; i++) { + const auto& repfield = this->_internal_security().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, repfield, repfield.GetCachedSize(), + target, stream); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; if (cached_has_bits & 0x00000004u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(14, _Internal::external_docs(this), - _Internal::external_docs(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 14, *_impl_.external_docs_, _impl_.external_docs_->GetCachedSize(), target, stream); } // map extensions = 15; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Swagger_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(15, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 15, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(15, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 15, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Swagger) return target; @@ -2126,7 +1974,7 @@ ::size_t Swagger::ByteSizeLong() const { for (std::size_t i = 0; i < count; ++i) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_schemes(static_cast(i))); + this->_internal_schemes().Get(static_cast(i))); } total_size += data_size; if (data_size > 0) { @@ -2136,61 +1984,52 @@ ::size_t Swagger::ByteSizeLong() const { } _impl_._schemes_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } - // repeated string consumes = 6; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_consumes().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_consumes().size()); for (int i = 0, n = _internal_consumes().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_consumes().Get(i)); } - // repeated string produces = 7; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_produces().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_produces().size()); for (int i = 0, n = _internal_produces().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_produces().Get(i)); } - // map responses = 10; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_responses_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >::const_iterator - it = this->_internal_responses().begin(); - it != this->_internal_responses().end(); ++it) { - total_size += Swagger_ResponsesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_responses_size()); + for (const auto& entry : _internal_responses()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; total_size += 1UL * this->_internal_security_size(); for (const auto& msg : this->_internal_security()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // map extensions = 15; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += Swagger_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string swagger = 1; if (!this->_internal_swagger().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_swagger()); } // string host = 3; if (!this->_internal_host().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_host()); } // string base_path = 4; if (!this->_internal_base_path().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_base_path()); } @@ -2198,39 +2037,31 @@ ::size_t Swagger::ByteSizeLong() const { if (cached_has_bits & 0x00000007u) { // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.info_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.info_); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.security_definitions_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.security_definitions_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.external_docs_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.external_docs_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Swagger::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Swagger::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Swagger::GetClassData() const { return &_class_data_; } - -void Swagger::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2240,7 +2071,8 @@ void Swagger::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB _this->_internal_mutable_consumes()->MergeFrom(from._internal_consumes()); _this->_internal_mutable_produces()->MergeFrom(from._internal_produces()); _this->_impl_.responses_.MergeFrom(from._impl_.responses_); - _this->_internal_mutable_security()->MergeFrom(from._internal_security()); + _this->_internal_mutable_security()->MergeFrom( + from._internal_security()); _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); if (!from._internal_swagger().empty()) { _this->_internal_set_swagger(from._internal_swagger()); @@ -2254,19 +2086,35 @@ void Swagger::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_info()->::grpc::gateway::protoc_gen_openapiv2::options::Info::MergeFrom( - from._internal_info()); + ABSL_DCHECK(from._impl_.info_ != nullptr); + if (_this->_impl_.info_ == nullptr) { + _this->_impl_.info_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Info>(arena, *from._impl_.info_); + } else { + _this->_impl_.info_->MergeFrom(*from._impl_.info_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_security_definitions()->::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions::MergeFrom( - from._internal_security_definitions()); + ABSL_DCHECK(from._impl_.security_definitions_ != nullptr); + if (_this->_impl_.security_definitions_ == nullptr) { + _this->_impl_.security_definitions_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(arena, *from._impl_.security_definitions_); + } else { + _this->_impl_.security_definitions_->MergeFrom(*from._impl_.security_definitions_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_external_docs()->::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation::MergeFrom( - from._internal_external_docs()); + ABSL_DCHECK(from._impl_.external_docs_ != nullptr); + if (_this->_impl_.external_docs_ == nullptr) { + _this->_impl_.external_docs_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(arena, *from._impl_.external_docs_); + } else { + _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Swagger::CopyFrom(const Swagger& from) { @@ -2276,32 +2124,26 @@ void Swagger::CopyFrom(const Swagger& from) { MergeFrom(from); } -bool Swagger::IsInitialized() const { +PROTOBUF_NOINLINE bool Swagger::IsInitialized() const { return true; } -void Swagger::InternalSwap(Swagger* other) { +void Swagger::InternalSwap(Swagger* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _internal_mutable_schemes()->InternalSwap( - other->_internal_mutable_schemes()); - _internal_mutable_consumes()->InternalSwap( - other->_internal_mutable_consumes()); - _internal_mutable_produces()->InternalSwap( - other->_internal_mutable_produces()); + _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); + _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); + _impl_.produces_.InternalSwap(&other->_impl_.produces_); _impl_.responses_.InternalSwap(&other->_impl_.responses_); - _internal_mutable_security()->InternalSwap(other->_internal_mutable_security()); + _impl_.security_.InternalSwap(&other->_impl_.security_); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.swagger_, lhs_arena, - &other->_impl_.swagger_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, lhs_arena, - &other->_impl_.host_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.base_path_, lhs_arena, - &other->_impl_.base_path_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.swagger_, &other->_impl_.swagger_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.base_path_, &other->_impl_.base_path_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_) + sizeof(Swagger::_impl_.external_docs_) - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)>( @@ -2309,36 +2151,30 @@ void Swagger::InternalSwap(Swagger* other) { reinterpret_cast(&other->_impl_.info_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Swagger::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[2]); +::google::protobuf::Metadata Swagger::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[2]); } // =================================================================== Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() {} -Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Operation_ResponsesEntry_DoNotUse::MergeFrom(const Operation_ResponsesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Operation_ResponsesEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[3]); +::google::protobuf::Metadata Operation_ResponsesEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[3]); } // =================================================================== Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() {} -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Operation_ExtensionsEntry_DoNotUse::MergeFrom(const Operation_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Operation_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[4]); +::google::protobuf::Metadata Operation_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[4]); } // =================================================================== @@ -2347,158 +2183,117 @@ class Operation::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs(const Operation* msg); - static void set_has_external_docs(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& -Operation::_Internal::external_docs(const Operation* msg) { - return *msg->_impl_.external_docs_; -} void Operation::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.extensions_.Clear(); } -Operation::Operation(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Operation::Operation(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } -Operation::Operation(const Operation& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Operation* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.tags_){from._impl_.tags_} - , decltype(_impl_.consumes_){from._impl_.consumes_} - , decltype(_impl_.produces_){from._impl_.produces_} - , /*decltype(_impl_.responses_)*/{} - , decltype(_impl_.schemes_) { from._internal_schemes() } - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.security_){from._impl_.security_} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.summary_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.operation_id_) {} - - , decltype(_impl_.external_docs_){nullptr} - , decltype(_impl_.deprecated_) {} - }; +inline PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + tags_{visibility, arena, from.tags_}, + consumes_{visibility, arena, from.consumes_}, + produces_{visibility, arena, from.produces_}, + responses_{visibility, arena, from.responses_}, + schemes_{visibility, arena, from.schemes_}, + _schemes_cached_byte_size_{0}, + security_{visibility, arena, from.security_}, + extensions_{visibility, arena, from.extensions_}, + summary_(arena, from.summary_), + description_(arena, from.description_), + operation_id_(arena, from.operation_id_) {} + +Operation::Operation( + ::google::protobuf::Arena* arena, + const Operation& from) + : ::google::protobuf::Message(arena) { + Operation* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.external_docs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>( + arena, *from._impl_.external_docs_) + : nullptr; + _impl_.deprecated_ = from._impl_.deprecated_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.responses_.MergeFrom(from._impl_.responses_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.summary_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.summary_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_summary().empty()) { - _this->_impl_.summary_.Set(from._internal_summary(), _this->GetArenaForAllocation()); - } - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.operation_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.operation_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_operation_id().empty()) { - _this->_impl_.operation_id_.Set(from._internal_operation_id(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.external_docs_ = new ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation(*from._impl_.external_docs_); - } - _this->_impl_.deprecated_ = from._impl_.deprecated_; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } +inline PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + tags_{visibility, arena}, + consumes_{visibility, arena}, + produces_{visibility, arena}, + responses_{visibility, arena}, + schemes_{visibility, arena}, + _schemes_cached_byte_size_{0}, + security_{visibility, arena}, + extensions_{visibility, arena}, + summary_(arena), + description_(arena), + operation_id_(arena) {} inline void Operation::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.tags_){arena} - , decltype(_impl_.consumes_){arena} - , decltype(_impl_.produces_){arena} - , /*decltype(_impl_.responses_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.schemes_) { arena } - , /*decltype(_impl_._schemes_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.security_){arena} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.summary_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.operation_id_) {} - - , decltype(_impl_.external_docs_){nullptr} - , decltype(_impl_.deprecated_) { false } - - }; - _impl_.summary_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.summary_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.operation_id_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.operation_id_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, external_docs_), + 0, + offsetof(Impl_, deprecated_) - + offsetof(Impl_, external_docs_) + + sizeof(Impl_::deprecated_)); } - Operation::~Operation() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Operation::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_tags()->~RepeatedPtrField(); - _internal_mutable_consumes()->~RepeatedPtrField(); - _internal_mutable_produces()->~RepeatedPtrField(); - _impl_.responses_.~MapField(); - _internal_mutable_schemes()->~RepeatedField(); - _internal_mutable_security()->~RepeatedPtrField(); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.summary_.Destroy(); _impl_.description_.Destroy(); _impl_.operation_id_.Destroy(); - if (this != internal_default_instance()) delete _impl_.external_docs_; -} - -void Operation::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Operation::Clear() { + delete _impl_.external_docs_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Operation::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Operation, _impl_._cached_size_), + false, + }, + &Operation::MergeImpl, + &Operation::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Operation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_tags()->Clear(); - _internal_mutable_consumes()->Clear(); - _internal_mutable_produces()->Clear(); + _impl_.tags_.Clear(); + _impl_.consumes_.Clear(); + _impl_.produces_.Clear(); _impl_.responses_.Clear(); - _internal_mutable_schemes()->Clear(); - _internal_mutable_security()->Clear(); + _impl_.schemes_.Clear(); + _impl_.security_.Clear(); _impl_.extensions_.Clear(); _impl_.summary_.ClearToEmpty(); _impl_.description_.ClearToEmpty(); @@ -2510,284 +2305,228 @@ void Operation::Clear() { } _impl_.deprecated_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Operation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated string tags = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_tags(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.tags")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - // string summary = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_summary(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.summary")); - } else { - goto handle_unusual; - } - continue; - // string description = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.description")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_external_docs(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string operation_id = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - auto str = _internal_mutable_operation_id(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id")); - } else { - goto handle_unusual; - } - continue; - // repeated string consumes = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_consumes(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated string produces = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_produces(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Operation.produces")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map responses = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.responses_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_schemes(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 80) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_add_schemes(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scheme>(val)); - } else { - goto handle_unusual; - } - continue; - // bool deprecated = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) { - _impl_.deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_security(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map extensions = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 106)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Operation::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 6, 137, 2> Operation::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_), + 0, // no _extensions_ + 13, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294959232, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Operation_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated string tags = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_)}}, + // string summary = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_)}}, + // string description = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {::_pbi::TcParser::FastMtS1, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)}}, + // string operation_id = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_)}}, + // repeated string consumes = 6; + {::_pbi::TcParser::FastUR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_)}}, + // repeated string produces = 7; + {::_pbi::TcParser::FastUR1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; + {::_pbi::TcParser::FastV32P1, + {82, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_)}}, + // bool deprecated = 11; + {::_pbi::TcParser::SingularVarintNoZag1(), + {88, 63, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 3, PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string tags = 1; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // string summary = 2; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 3; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string operation_id = 5; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string consumes = 6; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string produces = 7; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map responses = 9; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // bool deprecated = 11; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 13; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Operation()._impl_.responses_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::grpc::gateway::protoc_gen_openapiv2::options::Response>}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Operation()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\63\4\7\13\0\14\10\10\11\0\0\0\12\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Operation" + "tags" + "summary" + "description" + "operation_id" + "consumes" + "produces" + "responses" + "extensions" + }}, +}; + ::uint8_t* Operation::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // repeated string tags = 1; for (int i = 0, n = this->_internal_tags_size(); i < n; ++i) { - const auto& s = this->_internal_tags(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.tags"); + const auto& s = this->_internal_tags().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.tags"); target = stream->WriteString(1, s, target); } // string summary = 2; if (!this->_internal_summary().empty()) { const std::string& _s = this->_internal_summary(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.summary"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.summary"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string description = 3; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.description"); target = stream->WriteStringMaybeAliased(3, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::external_docs(this), - _Internal::external_docs(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *_impl_.external_docs_, _impl_.external_docs_->GetCachedSize(), target, stream); } // string operation_id = 5; if (!this->_internal_operation_id().empty()) { const std::string& _s = this->_internal_operation_id(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id"); target = stream->WriteStringMaybeAliased(5, _s, target); } // repeated string consumes = 6; for (int i = 0, n = this->_internal_consumes_size(); i < n; ++i) { - const auto& s = this->_internal_consumes(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes"); + const auto& s = this->_internal_consumes().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes"); target = stream->WriteString(6, s, target); } // repeated string produces = 7; for (int i = 0, n = this->_internal_produces_size(); i < n; ++i) { - const auto& s = this->_internal_produces(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.produces"); + const auto& s = this->_internal_produces().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.produces"); target = stream->WriteString(7, s, target); } // map responses = 9; - if (!this->_internal_responses().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Operation_ResponsesEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_responses(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.responses"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_responses().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_responses(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.responses"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.responses"); } } } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; { - int byte_size = _impl_._schemes_cached_byte_size_.Get(); + std::size_t byte_size = _impl_._schemes_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteEnumPacked(10, _internal_schemes(), byte_size, target); @@ -2802,41 +2541,47 @@ ::uint8_t* Operation::_InternalSerialize( } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - for (unsigned i = 0, - n = static_cast(this->_internal_security_size()); i < n; i++) { - const auto& repfield = this->_internal_security(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); + for (unsigned i = 0, n = static_cast( + this->_internal_security_size()); + i < n; i++) { + const auto& repfield = this->_internal_security().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, repfield, repfield.GetCachedSize(), + target, stream); } // map extensions = 13; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Operation_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Operation) return target; @@ -2851,35 +2596,30 @@ ::size_t Operation::ByteSizeLong() const { (void) cached_has_bits; // repeated string tags = 1; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_tags().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_tags().size()); for (int i = 0, n = _internal_tags().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_tags().Get(i)); } - // repeated string consumes = 6; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_consumes().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_consumes().size()); for (int i = 0, n = _internal_consumes().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_consumes().Get(i)); } - // repeated string produces = 7; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_produces().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_produces().size()); for (int i = 0, n = _internal_produces().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_produces().Get(i)); } - // map responses = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_responses_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response >::const_iterator - it = this->_internal_responses().begin(); - it != this->_internal_responses().end(); ++it) { - total_size += Operation_ResponsesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_responses_size()); + for (const auto& entry : _internal_responses()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; { std::size_t data_size = 0; @@ -2887,7 +2627,7 @@ ::size_t Operation::ByteSizeLong() const { for (std::size_t i = 0; i < count; ++i) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_schemes(static_cast(i))); + this->_internal_schemes().Get(static_cast(i))); } total_size += data_size; if (data_size > 0) { @@ -2897,47 +2637,41 @@ ::size_t Operation::ByteSizeLong() const { } _impl_._schemes_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; total_size += 1UL * this->_internal_security_size(); for (const auto& msg : this->_internal_security()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } - // map extensions = 13; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += Operation_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string summary = 2; if (!this->_internal_summary().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_summary()); } // string description = 3; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string operation_id = 5; if (!this->_internal_operation_id().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_operation_id()); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.external_docs_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.external_docs_); } // bool deprecated = 11; @@ -2948,16 +2682,11 @@ ::size_t Operation::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Operation::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Operation::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Operation::GetClassData() const { return &_class_data_; } - -void Operation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -2968,7 +2697,8 @@ void Operation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT _this->_internal_mutable_produces()->MergeFrom(from._internal_produces()); _this->_impl_.responses_.MergeFrom(from._impl_.responses_); _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); - _this->_internal_mutable_security()->MergeFrom(from._internal_security()); + _this->_internal_mutable_security()->MergeFrom( + from._internal_security()); _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); if (!from._internal_summary().empty()) { _this->_internal_set_summary(from._internal_summary()); @@ -2979,14 +2709,21 @@ void Operation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT if (!from._internal_operation_id().empty()) { _this->_internal_set_operation_id(from._internal_operation_id()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_external_docs()->::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation::MergeFrom( - from._internal_external_docs()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.external_docs_ != nullptr); + if (_this->_impl_.external_docs_ == nullptr) { + _this->_impl_.external_docs_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(arena, *from._impl_.external_docs_); + } else { + _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); + } } if (from._internal_deprecated() != 0) { - _this->_internal_set_deprecated(from._internal_deprecated()); + _this->_impl_.deprecated_ = from._impl_.deprecated_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Operation::CopyFrom(const Operation& from) { @@ -2996,34 +2733,27 @@ void Operation::CopyFrom(const Operation& from) { MergeFrom(from); } -bool Operation::IsInitialized() const { +PROTOBUF_NOINLINE bool Operation::IsInitialized() const { return true; } -void Operation::InternalSwap(Operation* other) { +void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _internal_mutable_tags()->InternalSwap( - other->_internal_mutable_tags()); - _internal_mutable_consumes()->InternalSwap( - other->_internal_mutable_consumes()); - _internal_mutable_produces()->InternalSwap( - other->_internal_mutable_produces()); + _impl_.tags_.InternalSwap(&other->_impl_.tags_); + _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); + _impl_.produces_.InternalSwap(&other->_impl_.produces_); _impl_.responses_.InternalSwap(&other->_impl_.responses_); - _internal_mutable_schemes()->InternalSwap( - other->_internal_mutable_schemes()); - _internal_mutable_security()->InternalSwap(other->_internal_mutable_security()); + _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); + _impl_.security_.InternalSwap(&other->_impl_.security_); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.summary_, lhs_arena, - &other->_impl_.summary_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.operation_id_, lhs_arena, - &other->_impl_.operation_id_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.summary_, &other->_impl_.summary_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.operation_id_, &other->_impl_.operation_id_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_) + sizeof(Operation::_impl_.deprecated_) - PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)>( @@ -3031,10 +2761,10 @@ void Operation::InternalSwap(Operation* other) { reinterpret_cast(&other->_impl_.external_docs_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Operation::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[5]); +::google::protobuf::Metadata Operation::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[5]); } // =================================================================== @@ -3042,127 +2772,78 @@ class Header::_Internal { public: }; -Header::Header(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Header::Header(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } -Header::Header(const Header& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Header* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.description_) {} - - , decltype(_impl_.type_) {} - - , decltype(_impl_.format_) {} +inline PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : description_(arena, from.description_), + type_(arena, from.type_), + format_(arena, from.format_), + default__(arena, from.default__), + pattern_(arena, from.pattern_), + _cached_size_{0} {} + +Header::Header( + ::google::protobuf::Arena* arena, + const Header& from) + : ::google::protobuf::Message(arena) { + Header* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - , decltype(_impl_.default__) {} - - , decltype(_impl_.pattern_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_type().empty()) { - _this->_impl_.type_.Set(from._internal_type(), _this->GetArenaForAllocation()); - } - _impl_.format_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_format().empty()) { - _this->_impl_.format_.Set(from._internal_format(), _this->GetArenaForAllocation()); - } - _impl_.default__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_default_().empty()) { - _this->_impl_.default__.Set(from._internal_default_(), _this->GetArenaForAllocation()); - } - _impl_.pattern_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_pattern().empty()) { - _this->_impl_.pattern_.Set(from._internal_pattern(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } +inline PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : description_(arena), + type_(arena), + format_(arena), + default__(arena), + pattern_(arena), + _cached_size_{0} {} inline void Header::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.description_) {} - - , decltype(_impl_.type_) {} - - , decltype(_impl_.format_) {} - - , decltype(_impl_.default__) {} - - , decltype(_impl_.pattern_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - Header::~Header() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Header) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Header::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.description_.Destroy(); _impl_.type_.Destroy(); _impl_.format_.Destroy(); _impl_.default__.Destroy(); _impl_.pattern_.Destroy(); -} - -void Header::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Header::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Header::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), + false, + }, + &Header::MergeImpl, + &Header::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Header::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Header) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3172,142 +2853,134 @@ void Header::Clear() { _impl_.format_.ClearToEmpty(); _impl_.default__.ClearToEmpty(); _impl_.pattern_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Header::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Header.description")); - } else { - goto handle_unusual; - } - continue; - // string type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Header.type")); - } else { - goto handle_unusual; - } - continue; - // string format = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_format(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Header.format")); - } else { - goto handle_unusual; - } - continue; - // string default = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_default_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Header.default")); - } else { - goto handle_unusual; - } - continue; - // string pattern = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 106)) { - auto str = _internal_mutable_pattern(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Header.pattern")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Header::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 92, 2> Header::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 13, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963160, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Header_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.description_)}}, + // string type = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.type_)}}, + // string format = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.format_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string pattern = 13; + {::_pbi::TcParser::FastUS1, + {106, 63, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_)}}, + // string default = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.default__)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string type = 2; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string format = 3; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.format_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 6; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.default__), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string pattern = 13; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\60\13\4\6\7\7\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Header" + "description" + "type" + "format" + "default" + "pattern" + }}, +}; + ::uint8_t* Header::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string description = 1; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.description"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string type = 2; if (!this->_internal_type().empty()) { const std::string& _s = this->_internal_type(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.type"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.type"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string format = 3; if (!this->_internal_format().empty()) { const std::string& _s = this->_internal_format(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.format"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.format"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string default = 6; if (!this->_internal_default_().empty()) { const std::string& _s = this->_internal_default_(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.default"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.default"); target = stream->WriteStringMaybeAliased(6, _s, target); } // string pattern = 13; if (!this->_internal_pattern().empty()) { const std::string& _s = this->_internal_pattern(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.pattern"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Header.pattern"); target = stream->WriteStringMaybeAliased(13, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Header) return target; @@ -3323,45 +2996,39 @@ ::size_t Header::ByteSizeLong() const { // string description = 1; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string type = 2; if (!this->_internal_type().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_type()); } // string format = 3; if (!this->_internal_format().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_format()); } // string default = 6; if (!this->_internal_default_().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_default_()); } // string pattern = 13; if (!this->_internal_pattern().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_pattern()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Header::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Header::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Header::GetClassData() const { return &_class_data_; } - -void Header::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) @@ -3384,7 +3051,7 @@ void Header::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU if (!from._internal_pattern().empty()) { _this->_internal_set_pattern(from._internal_pattern()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Header::CopyFrom(const Header& from) { @@ -3394,70 +3061,56 @@ void Header::CopyFrom(const Header& from) { MergeFrom(from); } -bool Header::IsInitialized() const { +PROTOBUF_NOINLINE bool Header::IsInitialized() const { return true; } -void Header::InternalSwap(Header* other) { +void Header::InternalSwap(Header* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, lhs_arena, - &other->_impl_.type_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.format_, lhs_arena, - &other->_impl_.format_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default__, lhs_arena, - &other->_impl_.default__, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, lhs_arena, - &other->_impl_.pattern_, rhs_arena); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Header::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[6]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.format_, &other->_impl_.format_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default__, &other->_impl_.default__, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, &other->_impl_.pattern_, arena); +} + +::google::protobuf::Metadata Header::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[6]); } // =================================================================== Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() {} -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Response_HeadersEntry_DoNotUse::MergeFrom(const Response_HeadersEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Response_HeadersEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[7]); +::google::protobuf::Metadata Response_HeadersEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[7]); } // =================================================================== Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() {} -Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Response_ExamplesEntry_DoNotUse::MergeFrom(const Response_ExamplesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Response_ExamplesEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[8]); +::google::protobuf::Metadata Response_ExamplesEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[8]); } // =================================================================== Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() {} -Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Response_ExtensionsEntry_DoNotUse::MergeFrom(const Response_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Response_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[9]); +::google::protobuf::Metadata Response_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[9]); } // =================================================================== @@ -3466,96 +3119,85 @@ class Response::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& schema(const Response* msg); - static void set_has_schema(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& -Response::_Internal::schema(const Response* msg) { - return *msg->_impl_.schema_; -} void Response::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.extensions_.Clear(); } -Response::Response(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Response::Response(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } -Response::Response(const Response& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Response* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.headers_)*/{} - , /*decltype(_impl_.examples_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.description_) {} - - , decltype(_impl_.schema_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + headers_{visibility, arena, from.headers_}, + examples_{visibility, arena, from.examples_}, + extensions_{visibility, arena, from.extensions_}, + description_(arena, from.description_) {} + +Response::Response( + ::google::protobuf::Arena* arena, + const Response& from) + : ::google::protobuf::Message(arena) { + Response* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.schema_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Schema>( + arena, *from._impl_.schema_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.headers_.MergeFrom(from._impl_.headers_); - _this->_impl_.examples_.MergeFrom(from._impl_.examples_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.schema_ = new ::grpc::gateway::protoc_gen_openapiv2::options::Schema(*from._impl_.schema_); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } +inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + headers_{visibility, arena}, + examples_{visibility, arena}, + extensions_{visibility, arena}, + description_(arena) {} inline void Response::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.headers_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.examples_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.description_) {} - - , decltype(_impl_.schema_){nullptr} - }; - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.schema_ = {}; } - Response::~Response() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Response) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Response::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.headers_.~MapField(); - _impl_.examples_.~MapField(); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.description_.Destroy(); - if (this != internal_default_instance()) delete _impl_.schema_; -} - -void Response::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Response::Clear() { + delete _impl_.schema_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Response::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), + false, + }, + &Response::MergeImpl, + &Response::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Response::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Response) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3570,205 +3212,197 @@ void Response::Clear() { _impl_.schema_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Response::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Response.description")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_schema(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // map headers = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.headers_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map examples = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.examples_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map extensions = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Response::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 5, 6, 95, 2> Response::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_), + 0, // no _extensions_ + 5, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Response_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map headers = 3; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map examples = 4; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map extensions = 5; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Schema>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Response()._impl_.headers_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::grpc::gateway::protoc_gen_openapiv2::options::Header>}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Response()._impl_.examples_)>( + 1, 0, 0, 9, + 9)}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Response()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\62\13\0\7\10\12\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response" + "description" + "headers" + "examples" + "extensions" + }}, +}; + ::uint8_t* Response::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string description = 1; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.description"); target = stream->WriteStringMaybeAliased(1, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::schema(this), - _Internal::schema(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *_impl_.schema_, _impl_.schema_->GetCachedSize(), target, stream); } // map headers = 3; - if (!this->_internal_headers().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Response_HeadersEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_headers(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.headers"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_headers().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_headers(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.headers"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.headers"); } } } // map examples = 4; - if (!this->_internal_examples().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Response_ExamplesEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_examples(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_examples().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_examples(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.examples"); } } } // map extensions = 5; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Response_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Response.extensions"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Response) return target; @@ -3783,59 +3417,47 @@ ::size_t Response::ByteSizeLong() const { (void) cached_has_bits; // map headers = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_headers_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header >::const_iterator - it = this->_internal_headers().begin(); - it != this->_internal_headers().end(); ++it) { - total_size += Response_HeadersEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_headers_size()); + for (const auto& entry : _internal_headers()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // map examples = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_examples_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_examples().begin(); - it != this->_internal_examples().end(); ++it) { - total_size += Response_ExamplesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_examples_size()); + for (const auto& entry : _internal_examples()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // map extensions = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += Response_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string description = 1; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.schema_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.schema_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Response::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Response::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Response::GetClassData() const { return &_class_data_; } - -void Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -3847,11 +3469,18 @@ void Response::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_schema()->::grpc::gateway::protoc_gen_openapiv2::options::Schema::MergeFrom( - from._internal_schema()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.schema_ != nullptr); + if (_this->_impl_.schema_ == nullptr) { + _this->_impl_.schema_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(arena, *from._impl_.schema_); + } else { + _this->_impl_.schema_->MergeFrom(*from._impl_.schema_); + } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Response::CopyFrom(const Response& from) { @@ -3861,41 +3490,37 @@ void Response::CopyFrom(const Response& from) { MergeFrom(from); } -bool Response::IsInitialized() const { +PROTOBUF_NOINLINE bool Response::IsInitialized() const { return true; } -void Response::InternalSwap(Response* other) { +void Response::InternalSwap(Response* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.headers_.InternalSwap(&other->_impl_.headers_); _impl_.examples_.InternalSwap(&other->_impl_.examples_); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); swap(_impl_.schema_, other->_impl_.schema_); } -::PROTOBUF_NAMESPACE_ID::Metadata Response::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[10]); +::google::protobuf::Metadata Response::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[10]); } // =================================================================== Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() {} -Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Info_ExtensionsEntry_DoNotUse::MergeFrom(const Info_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Info_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[11]); +::google::protobuf::Metadata Info_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[11]); } // =================================================================== @@ -3904,150 +3529,99 @@ class Info::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact(const Info* msg); - static void set_has_contact(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::grpc::gateway::protoc_gen_openapiv2::options::License& license(const Info* msg); - static void set_has_license(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& -Info::_Internal::contact(const Info* msg) { - return *msg->_impl_.contact_; -} -const ::grpc::gateway::protoc_gen_openapiv2::options::License& -Info::_Internal::license(const Info* msg) { - return *msg->_impl_.license_; -} void Info::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.extensions_.Clear(); } -Info::Info(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Info::Info(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } -Info::Info(const Info& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Info* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.title_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.terms_of_service_) {} +inline PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + extensions_{visibility, arena, from.extensions_}, + title_(arena, from.title_), + description_(arena, from.description_), + terms_of_service_(arena, from.terms_of_service_), + version_(arena, from.version_) {} + +Info::Info( + ::google::protobuf::Arena* arena, + const Info& from) + : ::google::protobuf::Message(arena) { + Info* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.contact_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Contact>( + arena, *from._impl_.contact_) + : nullptr; + _impl_.license_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::License>( + arena, *from._impl_.license_) + : nullptr; - , decltype(_impl_.version_) {} - - , decltype(_impl_.contact_){nullptr} - , decltype(_impl_.license_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.title_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.title_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_title().empty()) { - _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation()); - } - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.terms_of_service_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.terms_of_service_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_terms_of_service().empty()) { - _this->_impl_.terms_of_service_.Set(from._internal_terms_of_service(), _this->GetArenaForAllocation()); - } - _impl_.version_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_version().empty()) { - _this->_impl_.version_.Set(from._internal_version(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.contact_ = new ::grpc::gateway::protoc_gen_openapiv2::options::Contact(*from._impl_.contact_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.license_ = new ::grpc::gateway::protoc_gen_openapiv2::options::License(*from._impl_.license_); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } +inline PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + extensions_{visibility, arena}, + title_(arena), + description_(arena), + terms_of_service_(arena), + version_(arena) {} inline void Info::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.title_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.terms_of_service_) {} - - , decltype(_impl_.version_) {} - - , decltype(_impl_.contact_){nullptr} - , decltype(_impl_.license_){nullptr} - }; - _impl_.title_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.title_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.terms_of_service_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.terms_of_service_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, contact_), + 0, + offsetof(Impl_, license_) - + offsetof(Impl_, contact_) + + sizeof(Impl_::license_)); } - Info::~Info() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Info) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Info::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.title_.Destroy(); - _impl_.description_.Destroy(); - _impl_.terms_of_service_.Destroy(); - _impl_.version_.Destroy(); - if (this != internal_default_instance()) delete _impl_.contact_; - if (this != internal_default_instance()) delete _impl_.license_; -} - -void Info::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Info::Clear() { + _impl_.description_.Destroy(); + _impl_.terms_of_service_.Destroy(); + _impl_.version_.Destroy(); + delete _impl_.contact_; + delete _impl_.license_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Info::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Info, _impl_._cached_size_), + false, + }, + &Info::MergeImpl, + &Info::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Info::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Info) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4069,197 +3643,180 @@ void Info::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Info::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string title = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_title(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Info.title")); - } else { - goto handle_unusual; - } - continue; - // string description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Info.description")); - } else { - goto handle_unusual; - } - continue; - // string terms_of_service = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_terms_of_service(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_contact(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_license(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string version = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_version(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Info.version")); - } else { - goto handle_unusual; - } - continue; - // map extensions = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Info::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 4, 104, 2> Info::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Info_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string title = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.title_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.description_)}}, + // string terms_of_service = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {::_pbi::TcParser::FastMtS1, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + {::_pbi::TcParser::FastMtS1, + {42, 1, 1, PROTOBUF_FIELD_OFFSET(Info, _impl_.license_)}}, + // string version = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string title = 1; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.title_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string terms_of_service = 3; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.license_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string version = 6; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.version_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // map extensions = 7; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Contact>()}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::License>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Info()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\56\5\13\20\0\0\7\12" + "grpc.gateway.protoc_gen_openapiv2.options.Info" + "title" + "description" + "terms_of_service" + "version" + "extensions" + }}, +}; + ::uint8_t* Info::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string title = 1; if (!this->_internal_title().empty()) { const std::string& _s = this->_internal_title(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.title"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.title"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string description = 2; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.description"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string terms_of_service = 3; if (!this->_internal_terms_of_service().empty()) { const std::string& _s = this->_internal_terms_of_service(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service"); target = stream->WriteStringMaybeAliased(3, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::contact(this), - _Internal::contact(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *_impl_.contact_, _impl_.contact_->GetCachedSize(), target, stream); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; if (cached_has_bits & 0x00000002u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::license(this), - _Internal::license(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *_impl_.license_, _impl_.license_->GetCachedSize(), target, stream); } // string version = 6; if (!this->_internal_version().empty()) { const std::string& _s = this->_internal_version(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.version"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.version"); target = stream->WriteStringMaybeAliased(6, _s, target); } // map extensions = 7; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Info_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Info.extensions"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Info) return target; @@ -4274,35 +3831,33 @@ ::size_t Info::ByteSizeLong() const { (void) cached_has_bits; // map extensions = 7; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += Info_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string title = 1; if (!this->_internal_title().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_title()); } // string description = 2; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string terms_of_service = 3; if (!this->_internal_terms_of_service().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_terms_of_service()); } // string version = 6; if (!this->_internal_version().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_version()); } @@ -4310,32 +3865,25 @@ ::size_t Info::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.contact_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.contact_); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.license_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.license_); } } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Info::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Info::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Info::GetClassData() const { return &_class_data_; } - -void Info::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -4357,15 +3905,26 @@ void Info::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_ cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_contact()->::grpc::gateway::protoc_gen_openapiv2::options::Contact::MergeFrom( - from._internal_contact()); + ABSL_DCHECK(from._impl_.contact_ != nullptr); + if (_this->_impl_.contact_ == nullptr) { + _this->_impl_.contact_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(arena, *from._impl_.contact_); + } else { + _this->_impl_.contact_->MergeFrom(*from._impl_.contact_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_license()->::grpc::gateway::protoc_gen_openapiv2::options::License::MergeFrom( - from._internal_license()); + ABSL_DCHECK(from._impl_.license_ != nullptr); + if (_this->_impl_.license_ == nullptr) { + _this->_impl_.license_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::License>(arena, *from._impl_.license_); + } else { + _this->_impl_.license_->MergeFrom(*from._impl_.license_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Info::CopyFrom(const Info& from) { @@ -4375,26 +3934,22 @@ void Info::CopyFrom(const Info& from) { MergeFrom(from); } -bool Info::IsInitialized() const { +PROTOBUF_NOINLINE bool Info::IsInitialized() const { return true; } -void Info::InternalSwap(Info* other) { +void Info::InternalSwap(Info* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, lhs_arena, - &other->_impl_.title_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.terms_of_service_, lhs_arena, - &other->_impl_.terms_of_service_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, lhs_arena, - &other->_impl_.version_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.terms_of_service_, &other->_impl_.terms_of_service_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.version_, &other->_impl_.version_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Info, _impl_.license_) + sizeof(Info::_impl_.license_) - PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)>( @@ -4402,10 +3957,10 @@ void Info::InternalSwap(Info* other) { reinterpret_cast(&other->_impl_.contact_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Info::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[12]); +::google::protobuf::Metadata Info::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[12]); } // =================================================================== @@ -4413,95 +3968,72 @@ class Contact::_Internal { public: }; -Contact::Contact(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Contact::Contact(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } -Contact::Contact(const Contact& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Contact* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} +inline PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : name_(arena, from.name_), + url_(arena, from.url_), + email_(arena, from.email_), + _cached_size_{0} {} + +Contact::Contact( + ::google::protobuf::Arena* arena, + const Contact& from) + : ::google::protobuf::Message(arena) { + Contact* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - , decltype(_impl_.url_) {} - - , decltype(_impl_.email_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_url().empty()) { - _this->_impl_.url_.Set(from._internal_url(), _this->GetArenaForAllocation()); - } - _impl_.email_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.email_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_email().empty()) { - _this->_impl_.email_.Set(from._internal_email(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } +inline PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + url_(arena), + email_(arena), + _cached_size_{0} {} inline void Contact::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} - - , decltype(_impl_.url_) {} - - , decltype(_impl_.email_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.email_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.email_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - Contact::~Contact() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Contact::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.url_.Destroy(); _impl_.email_.Destroy(); -} - -void Contact::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Contact::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Contact::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Contact, _impl_._cached_size_), + false, + }, + &Contact::MergeImpl, + &Contact::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Contact::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4509,104 +4041,102 @@ void Contact::Clear() { _impl_.name_.ClearToEmpty(); _impl_.url_.ClearToEmpty(); _impl_.email_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Contact::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Contact.name")); - } else { - goto handle_unusual; - } - continue; - // string url = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Contact.url")); - } else { - goto handle_unusual; - } - continue; - // string email = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_email(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Contact.email")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Contact::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 70, 2> Contact::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Contact_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_)}}, + // string url = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_)}}, + // string email = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string email = 3; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\4\3\5\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Contact" + "name" + "url" + "email" + }}, +}; + ::uint8_t* Contact::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string url = 2; if (!this->_internal_url().empty()) { const std::string& _s = this->_internal_url(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.url"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.url"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string email = 3; if (!this->_internal_email().empty()) { const std::string& _s = this->_internal_email(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.email"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Contact.email"); target = stream->WriteStringMaybeAliased(3, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Contact) return target; @@ -4622,33 +4152,27 @@ ::size_t Contact::ByteSizeLong() const { // string name = 1; if (!this->_internal_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string url = 2; if (!this->_internal_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_url()); } // string email = 3; if (!this->_internal_email().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_email()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Contact::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Contact::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Contact::GetClassData() const { return &_class_data_; } - -void Contact::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) @@ -4665,7 +4189,7 @@ void Contact::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB if (!from._internal_email().empty()) { _this->_internal_set_email(from._internal_email()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Contact::CopyFrom(const Contact& from) { @@ -4675,27 +4199,24 @@ void Contact::CopyFrom(const Contact& from) { MergeFrom(from); } -bool Contact::IsInitialized() const { +PROTOBUF_NOINLINE bool Contact::IsInitialized() const { return true; } -void Contact::InternalSwap(Contact* other) { +void Contact::InternalSwap(Contact* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, lhs_arena, - &other->_impl_.url_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, lhs_arena, - &other->_impl_.email_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata Contact::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[13]); +::google::protobuf::Metadata Contact::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[13]); } // =================================================================== @@ -4703,164 +4224,155 @@ class License::_Internal { public: }; -License::License(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +License::License(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } -License::License(const License& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - License* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} - - , decltype(_impl_.url_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : name_(arena, from.name_), + url_(arena, from.url_), + _cached_size_{0} {} + +License::License( + ::google::protobuf::Arena* arena, + const License& from) + : ::google::protobuf::Message(arena) { + License* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_url().empty()) { - _this->_impl_.url_.Set(from._internal_url(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } +inline PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + url_(arena), + _cached_size_{0} {} inline void License::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.name_) {} - - , decltype(_impl_.url_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - License::~License() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.License) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void License::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.name_.Destroy(); _impl_.url_.Destroy(); -} - -void License::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void License::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +License::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(License, _impl_._cached_size_), + false, + }, + &License::MergeImpl, + &License::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void License::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.License) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* License::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.License.name")); - } else { - goto handle_unusual; - } - continue; - // string url = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.License.url")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* License::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 65, 2> License::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_License_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::License>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string url = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.url_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(License, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(License, _impl_.url_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\4\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.License" + "name" + "url" + }}, +}; + ::uint8_t* License::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.License) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string name = 1; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.License.name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.License.name"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string url = 2; if (!this->_internal_url().empty()) { const std::string& _s = this->_internal_url(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.License.url"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.License.url"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.License) return target; @@ -4876,27 +4388,21 @@ ::size_t License::ByteSizeLong() const { // string name = 1; if (!this->_internal_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string url = 2; if (!this->_internal_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_url()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData License::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - License::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*License::GetClassData() const { return &_class_data_; } - -void License::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void License::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) @@ -4910,7 +4416,7 @@ void License::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void License::CopyFrom(const License& from) { @@ -4920,25 +4426,23 @@ void License::CopyFrom(const License& from) { MergeFrom(from); } -bool License::IsInitialized() const { +PROTOBUF_NOINLINE bool License::IsInitialized() const { return true; } -void License::InternalSwap(License* other) { +void License::InternalSwap(License* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, lhs_arena, - &other->_impl_.url_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata License::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[14]); +::google::protobuf::Metadata License::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[14]); } // =================================================================== @@ -4946,164 +4450,155 @@ class ExternalDocumentation::_Internal { public: }; -ExternalDocumentation::ExternalDocumentation(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ExternalDocumentation::ExternalDocumentation(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } -ExternalDocumentation::ExternalDocumentation(const ExternalDocumentation& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ExternalDocumentation* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.description_) {} +inline PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : description_(arena, from.description_), + url_(arena, from.url_), + _cached_size_{0} {} + +ExternalDocumentation::ExternalDocumentation( + ::google::protobuf::Arena* arena, + const ExternalDocumentation& from) + : ::google::protobuf::Message(arena) { + ExternalDocumentation* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - , decltype(_impl_.url_) {} - - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_url().empty()) { - _this->_impl_.url_.Set(from._internal_url(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } +inline PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : description_(arena), + url_(arena), + _cached_size_{0} {} inline void ExternalDocumentation::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.description_) {} - - , decltype(_impl_.url_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - ExternalDocumentation::~ExternalDocumentation() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void ExternalDocumentation::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.description_.Destroy(); _impl_.url_.Destroy(); -} - -void ExternalDocumentation::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ExternalDocumentation::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +ExternalDocumentation::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._cached_size_), + false, + }, + &ExternalDocumentation::MergeImpl, + &ExternalDocumentation::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void ExternalDocumentation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.description_.ClearToEmpty(); _impl_.url_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ExternalDocumentation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string description = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description")); - } else { - goto handle_unusual; - } - continue; - // string url = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* ExternalDocumentation::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 86, 2> ExternalDocumentation::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ExternalDocumentation_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string url = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\77\13\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" + "description" + "url" + }}, +}; + ::uint8_t* ExternalDocumentation::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string description = 1; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description"); target = stream->WriteStringMaybeAliased(1, _s, target); } // string url = 2; if (!this->_internal_url().empty()) { const std::string& _s = this->_internal_url(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url"); target = stream->WriteStringMaybeAliased(2, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) return target; @@ -5119,27 +4614,21 @@ ::size_t ExternalDocumentation::ByteSizeLong() const { // string description = 1; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string url = 2; if (!this->_internal_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_url()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExternalDocumentation::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ExternalDocumentation::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExternalDocumentation::GetClassData() const { return &_class_data_; } - -void ExternalDocumentation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) @@ -5153,7 +4642,7 @@ void ExternalDocumentation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ExternalDocumentation::CopyFrom(const ExternalDocumentation& from) { @@ -5163,25 +4652,23 @@ void ExternalDocumentation::CopyFrom(const ExternalDocumentation& from) { MergeFrom(from); } -bool ExternalDocumentation::IsInitialized() const { +PROTOBUF_NOINLINE bool ExternalDocumentation::IsInitialized() const { return true; } -void ExternalDocumentation::InternalSwap(ExternalDocumentation* other) { +void ExternalDocumentation::InternalSwap(ExternalDocumentation* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, lhs_arena, - &other->_impl_.url_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.url_, &other->_impl_.url_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata ExternalDocumentation::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[15]); +::google::protobuf::Metadata ExternalDocumentation::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[15]); } // =================================================================== @@ -5190,116 +4677,88 @@ class Schema::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema(const Schema* msg); - static void set_has_json_schema(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs(const Schema* msg); - static void set_has_external_docs(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& -Schema::_Internal::json_schema(const Schema* msg) { - return *msg->_impl_.json_schema_; -} -const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& -Schema::_Internal::external_docs(const Schema* msg) { - return *msg->_impl_.external_docs_; -} -Schema::Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Schema::Schema(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } -Schema::Schema(const Schema& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Schema* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.discriminator_) {} - - , decltype(_impl_.example_) {} - - , decltype(_impl_.json_schema_){nullptr} - , decltype(_impl_.external_docs_){nullptr} - , decltype(_impl_.read_only_) {} - }; +inline PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + discriminator_(arena, from.discriminator_), + example_(arena, from.example_) {} + +Schema::Schema( + ::google::protobuf::Arena* arena, + const Schema& from) + : ::google::protobuf::Message(arena) { + Schema* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.json_schema_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>( + arena, *from._impl_.json_schema_) + : nullptr; + _impl_.external_docs_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>( + arena, *from._impl_.external_docs_) + : nullptr; + _impl_.read_only_ = from._impl_.read_only_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.discriminator_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.discriminator_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_discriminator().empty()) { - _this->_impl_.discriminator_.Set(from._internal_discriminator(), _this->GetArenaForAllocation()); - } - _impl_.example_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_example().empty()) { - _this->_impl_.example_.Set(from._internal_example(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.json_schema_ = new ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema(*from._impl_.json_schema_); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.external_docs_ = new ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation(*from._impl_.external_docs_); - } - _this->_impl_.read_only_ = from._impl_.read_only_; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } +inline PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + discriminator_(arena), + example_(arena) {} inline void Schema::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.discriminator_) {} - - , decltype(_impl_.example_) {} - - , decltype(_impl_.json_schema_){nullptr} - , decltype(_impl_.external_docs_){nullptr} - , decltype(_impl_.read_only_) { false } - - }; - _impl_.discriminator_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.discriminator_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, json_schema_), + 0, + offsetof(Impl_, read_only_) - + offsetof(Impl_, json_schema_) + + sizeof(Impl_::read_only_)); } - Schema::~Schema() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Schema::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.discriminator_.Destroy(); _impl_.example_.Destroy(); - if (this != internal_default_instance()) delete _impl_.json_schema_; - if (this != internal_default_instance()) delete _impl_.external_docs_; -} - -void Schema::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Schema::Clear() { + delete _impl_.json_schema_; + delete _impl_.external_docs_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Schema::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Schema, _impl_._cached_size_), + false, + }, + &Schema::MergeImpl, + &Schema::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -5319,108 +4778,100 @@ void Schema::Clear() { } _impl_.read_only_ = false; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Schema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_json_schema(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string discriminator = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_discriminator(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator")); - } else { - goto handle_unusual; - } - continue; - // bool read_only = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _impl_.read_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_external_docs(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string example = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_example(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Schema.example")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Schema::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 2, 77, 2> Schema::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967240, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Schema_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; + {::_pbi::TcParser::FastMtS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)}}, + // string discriminator = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_)}}, + // bool read_only = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + {::_pbi::TcParser::FastMtS1, + {42, 1, 1, PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_)}}, + // string example = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string discriminator = 2; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 3; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string example = 6; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>()}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + }}, {{ + "\60\0\15\0\0\7\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Schema" + "discriminator" + "example" + }}, +}; + ::uint8_t* Schema::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::json_schema(this), - _Internal::json_schema(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *_impl_.json_schema_, _impl_.json_schema_->GetCachedSize(), target, stream); } // string discriminator = 2; if (!this->_internal_discriminator().empty()) { const std::string& _s = this->_internal_discriminator(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator"); target = stream->WriteStringMaybeAliased(2, _s, target); } @@ -5433,22 +4884,22 @@ ::uint8_t* Schema::_InternalSerialize( // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; if (cached_has_bits & 0x00000002u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::external_docs(this), - _Internal::external_docs(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *_impl_.external_docs_, _impl_.external_docs_->GetCachedSize(), target, stream); } // string example = 6; if (!this->_internal_example().empty()) { const std::string& _s = this->_internal_example(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Schema.example"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Schema.example"); target = stream->WriteStringMaybeAliased(6, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Schema) return target; @@ -5464,13 +4915,13 @@ ::size_t Schema::ByteSizeLong() const { // string discriminator = 2; if (!this->_internal_discriminator().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_discriminator()); } // string example = 6; if (!this->_internal_example().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_example()); } @@ -5478,16 +4929,14 @@ ::size_t Schema::ByteSizeLong() const { if (cached_has_bits & 0x00000003u) { // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.json_schema_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.json_schema_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.external_docs_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.external_docs_); } } @@ -5499,16 +4948,11 @@ ::size_t Schema::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Schema::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Schema::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Schema::GetClassData() const { return &_class_data_; } - -void Schema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -5523,18 +4967,29 @@ void Schema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_json_schema()->::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema::MergeFrom( - from._internal_json_schema()); + ABSL_DCHECK(from._impl_.json_schema_ != nullptr); + if (_this->_impl_.json_schema_ == nullptr) { + _this->_impl_.json_schema_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(arena, *from._impl_.json_schema_); + } else { + _this->_impl_.json_schema_->MergeFrom(*from._impl_.json_schema_); + } } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_external_docs()->::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation::MergeFrom( - from._internal_external_docs()); + ABSL_DCHECK(from._impl_.external_docs_ != nullptr); + if (_this->_impl_.external_docs_ == nullptr) { + _this->_impl_.external_docs_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(arena, *from._impl_.external_docs_); + } else { + _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); + } } } if (from._internal_read_only() != 0) { - _this->_internal_set_read_only(from._internal_read_only()); + _this->_impl_.read_only_ = from._impl_.read_only_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Schema::CopyFrom(const Schema& from) { @@ -5544,21 +4999,19 @@ void Schema::CopyFrom(const Schema& from) { MergeFrom(from); } -bool Schema::IsInitialized() const { +PROTOBUF_NOINLINE bool Schema::IsInitialized() const { return true; } -void Schema::InternalSwap(Schema* other) { +void Schema::InternalSwap(Schema* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.discriminator_, lhs_arena, - &other->_impl_.discriminator_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.example_, lhs_arena, - &other->_impl_.example_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.discriminator_, &other->_impl_.discriminator_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.example_, &other->_impl_.example_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_) + sizeof(Schema::_impl_.read_only_) - PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)>( @@ -5566,10 +5019,10 @@ void Schema::InternalSwap(Schema* other) { reinterpret_cast(&other->_impl_.json_schema_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Schema::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[16]); +::google::protobuf::Metadata Schema::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[16]); } // =================================================================== @@ -5577,128 +5030,138 @@ class JSONSchema_FieldConfiguration::_Internal { public: }; -JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } -JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(const JSONSchema_FieldConfiguration& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - JSONSchema_FieldConfiguration* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.path_param_name_) {} +inline PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : path_param_name_(arena, from.path_param_name_), + _cached_size_{0} {} + +JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( + ::google::protobuf::Arena* arena, + const JSONSchema_FieldConfiguration& from) + : ::google::protobuf::Message(arena) { + JSONSchema_FieldConfiguration* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.path_param_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_param_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_path_param_name().empty()) { - _this->_impl_.path_param_name_.Set(from._internal_path_param_name(), _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } +inline PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : path_param_name_(arena), + _cached_size_{0} {} inline void JSONSchema_FieldConfiguration::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.path_param_name_) {} - - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.path_param_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_param_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } - JSONSchema_FieldConfiguration::~JSONSchema_FieldConfiguration() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void JSONSchema_FieldConfiguration::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.path_param_name_.Destroy(); -} - -void JSONSchema_FieldConfiguration::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void JSONSchema_FieldConfiguration::Clear() { + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +JSONSchema_FieldConfiguration::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._cached_size_), + false, + }, + &JSONSchema_FieldConfiguration::MergeImpl, + &JSONSchema_FieldConfiguration::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void JSONSchema_FieldConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.path_param_name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* JSONSchema_FieldConfiguration::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string path_param_name = 47; - case 47: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 122)) { - auto str = _internal_mutable_path_param_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name")); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* JSONSchema_FieldConfiguration::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 95, 7> JSONSchema_FieldConfiguration::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 47, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_JSONSchema_FieldConfiguration_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string path_param_name = 47; + {::_pbi::TcParser::FastUS2, + {762, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_.path_param_name_)}}, + }}, {{ + 47, 0, 1, + 65534, 0, + 65535, 65535 + }}, {{ + // string path_param_name = 47; + {PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_.path_param_name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\107\17\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration" + "path_param_name" + }}, +}; + ::uint8_t* JSONSchema_FieldConfiguration::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string path_param_name = 47; if (!this->_internal_path_param_name().empty()) { const std::string& _s = this->_internal_path_param_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name"); target = stream->WriteStringMaybeAliased(47, _s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) return target; @@ -5714,21 +5177,15 @@ ::size_t JSONSchema_FieldConfiguration::ByteSizeLong() const { // string path_param_name = 47; if (!this->_internal_path_param_name().empty()) { - total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_path_param_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JSONSchema_FieldConfiguration::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - JSONSchema_FieldConfiguration::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JSONSchema_FieldConfiguration::GetClassData() const { return &_class_data_; } - -void JSONSchema_FieldConfiguration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void JSONSchema_FieldConfiguration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) @@ -5739,287 +5196,137 @@ void JSONSchema_FieldConfiguration::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& if (!from._internal_path_param_name().empty()) { _this->_internal_set_path_param_name(from._internal_path_param_name()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void JSONSchema_FieldConfiguration::CopyFrom(const JSONSchema_FieldConfiguration& from) { // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool JSONSchema_FieldConfiguration::IsInitialized() const { - return true; -} - -void JSONSchema_FieldConfiguration::InternalSwap(JSONSchema_FieldConfiguration* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_param_name_, lhs_arena, - &other->_impl_.path_param_name_, rhs_arena); -} - -::PROTOBUF_NAMESPACE_ID::Metadata JSONSchema_FieldConfiguration::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[17]); -} -// =================================================================== - -JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() {} -JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void JSONSchema_ExtensionsEntry_DoNotUse::MergeFrom(const JSONSchema_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata JSONSchema_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[18]); -} -// =================================================================== - -class JSONSchema::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration(const JSONSchema* msg); - static void set_has_field_configuration(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& -JSONSchema::_Internal::field_configuration(const JSONSchema* msg) { - return *msg->_impl_.field_configuration_; -} -void JSONSchema::clear_extensions() { - _impl_.extensions_.Clear(); -} -JSONSchema::JSONSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) -} -JSONSchema::JSONSchema(const JSONSchema& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - JSONSchema* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.required_){from._impl_.required_} - , decltype(_impl_.array_){from._impl_.array_} - , decltype(_impl_.type_) { from._internal_type() } - , /*decltype(_impl_._type_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.enum__){from._impl_.enum__} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.ref_) {} - - , decltype(_impl_.title_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.default__) {} - - , decltype(_impl_.example_) {} - - , decltype(_impl_.pattern_) {} - - , decltype(_impl_.format_) {} - - , decltype(_impl_.field_configuration_){nullptr} - , decltype(_impl_.multiple_of_) {} - - , decltype(_impl_.maximum_) {} - - , decltype(_impl_.minimum_) {} - - , decltype(_impl_.max_length_) {} - - , decltype(_impl_.min_length_) {} - - , decltype(_impl_.max_items_) {} - - , decltype(_impl_.min_items_) {} - - , decltype(_impl_.max_properties_) {} - - , decltype(_impl_.min_properties_) {} - - , decltype(_impl_.read_only_) {} - - , decltype(_impl_.exclusive_maximum_) {} - - , decltype(_impl_.exclusive_minimum_) {} - - , decltype(_impl_.unique_items_) {} - }; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.ref_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ref_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_ref().empty()) { - _this->_impl_.ref_.Set(from._internal_ref(), _this->GetArenaForAllocation()); - } - _impl_.title_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.title_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_title().empty()) { - _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation()); - } - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.default__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_default_().empty()) { - _this->_impl_.default__.Set(from._internal_default_(), _this->GetArenaForAllocation()); - } - _impl_.example_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_example().empty()) { - _this->_impl_.example_.Set(from._internal_example(), _this->GetArenaForAllocation()); - } - _impl_.pattern_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_pattern().empty()) { - _this->_impl_.pattern_.Set(from._internal_pattern(), _this->GetArenaForAllocation()); - } - _impl_.format_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_format().empty()) { - _this->_impl_.format_.Set(from._internal_format(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.field_configuration_ = new ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration(*from._impl_.field_configuration_); - } - ::memcpy(&_impl_.multiple_of_, &from._impl_.multiple_of_, - static_cast<::size_t>(reinterpret_cast(&_impl_.unique_items_) - - reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.unique_items_)); - // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) -} - -inline void JSONSchema::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.required_){arena} - , decltype(_impl_.array_){arena} - , decltype(_impl_.type_) { arena } - , /*decltype(_impl_._type_cached_byte_size_)*/ { 0 } - - , decltype(_impl_.enum__){arena} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.ref_) {} - - , decltype(_impl_.title_) {} - - , decltype(_impl_.description_) {} - - , decltype(_impl_.default__) {} - - , decltype(_impl_.example_) {} - - , decltype(_impl_.pattern_) {} - - , decltype(_impl_.format_) {} - - , decltype(_impl_.field_configuration_){nullptr} - , decltype(_impl_.multiple_of_) { 0 } - - , decltype(_impl_.maximum_) { 0 } - - , decltype(_impl_.minimum_) { 0 } - - , decltype(_impl_.max_length_) { ::uint64_t{0u} } - - , decltype(_impl_.min_length_) { ::uint64_t{0u} } - - , decltype(_impl_.max_items_) { ::uint64_t{0u} } - - , decltype(_impl_.min_items_) { ::uint64_t{0u} } + if (&from == this) return; + Clear(); + MergeFrom(from); +} - , decltype(_impl_.max_properties_) { ::uint64_t{0u} } +PROTOBUF_NOINLINE bool JSONSchema_FieldConfiguration::IsInitialized() const { + return true; +} - , decltype(_impl_.min_properties_) { ::uint64_t{0u} } +void JSONSchema_FieldConfiguration::InternalSwap(JSONSchema_FieldConfiguration* PROTOBUF_RESTRICT other) { + using std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_param_name_, &other->_impl_.path_param_name_, arena); +} - , decltype(_impl_.read_only_) { false } +::google::protobuf::Metadata JSONSchema_FieldConfiguration::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[17]); +} +// =================================================================== - , decltype(_impl_.exclusive_maximum_) { false } +JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() {} +JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +::google::protobuf::Metadata JSONSchema_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[18]); +} +// =================================================================== - , decltype(_impl_.exclusive_minimum_) { false } +class JSONSchema::_Internal { + public: + using HasBits = decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._has_bits_); +}; - , decltype(_impl_.unique_items_) { false } +void JSONSchema::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); + _impl_.extensions_.Clear(); +} +JSONSchema::JSONSchema(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) +} +inline PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + required_{visibility, arena, from.required_}, + array_{visibility, arena, from.array_}, + type_{visibility, arena, from.type_}, + _type_cached_byte_size_{0}, + enum__{visibility, arena, from.enum__}, + extensions_{visibility, arena, from.extensions_}, + ref_(arena, from.ref_), + title_(arena, from.title_), + description_(arena, from.description_), + default__(arena, from.default__), + example_(arena, from.example_), + pattern_(arena, from.pattern_), + format_(arena, from.format_) {} + +JSONSchema::JSONSchema( + ::google::protobuf::Arena* arena, + const JSONSchema& from) + : ::google::protobuf::Message(arena) { + JSONSchema* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.field_configuration_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>( + arena, *from._impl_.field_configuration_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, multiple_of_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, multiple_of_), + offsetof(Impl_, unique_items_) - + offsetof(Impl_, multiple_of_) + + sizeof(Impl_::unique_items_)); - }; - _impl_.ref_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ref_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.title_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.title_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default__.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.example_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pattern_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.format_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) } +inline PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + required_{visibility, arena}, + array_{visibility, arena}, + type_{visibility, arena}, + _type_cached_byte_size_{0}, + enum__{visibility, arena}, + extensions_{visibility, arena}, + ref_(arena), + title_(arena), + description_(arena), + default__(arena), + example_(arena), + pattern_(arena), + format_(arena) {} +inline void JSONSchema::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, field_configuration_), + 0, + offsetof(Impl_, unique_items_) - + offsetof(Impl_, field_configuration_) + + sizeof(Impl_::unique_items_)); +} JSONSchema::~JSONSchema() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void JSONSchema::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_required()->~RepeatedPtrField(); - _internal_mutable_array()->~RepeatedPtrField(); - _internal_mutable_type()->~RepeatedField(); - _internal_mutable_enum_()->~RepeatedPtrField(); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.ref_.Destroy(); _impl_.title_.Destroy(); _impl_.description_.Destroy(); @@ -6027,23 +5334,35 @@ inline void JSONSchema::SharedDtor() { _impl_.example_.Destroy(); _impl_.pattern_.Destroy(); _impl_.format_.Destroy(); - if (this != internal_default_instance()) delete _impl_.field_configuration_; -} - -void JSONSchema::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void JSONSchema::Clear() { + delete _impl_.field_configuration_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +JSONSchema::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._cached_size_), + false, + }, + &JSONSchema::MergeImpl, + &JSONSchema::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void JSONSchema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_required()->Clear(); - _internal_mutable_array()->Clear(); - _internal_mutable_type()->Clear(); - _internal_mutable_enum_()->Clear(); + _impl_.required_.Clear(); + _impl_.array_.Clear(); + _impl_.type_.Clear(); + _impl_.enum__.Clear(); _impl_.extensions_.Clear(); _impl_.ref_.ClearToEmpty(); _impl_.title_.ClearToEmpty(); @@ -6061,353 +5380,256 @@ void JSONSchema::Clear() { reinterpret_cast(&_impl_.unique_items_) - reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.unique_items_)); _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* JSONSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string ref = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_ref(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref")); - } else { - goto handle_unusual; - } - continue; - // string title = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - auto str = _internal_mutable_title(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title")); - } else { - goto handle_unusual; - } - continue; - // string description = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description")); - } else { - goto handle_unusual; - } - continue; - // string default = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_default_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default")); - } else { - goto handle_unusual; - } - continue; - // bool read_only = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) { - _impl_.read_only_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string example = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - auto str = _internal_mutable_example(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example")); - } else { - goto handle_unusual; - } - continue; - // double multiple_of = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 81)) { - _impl_.multiple_of_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // double maximum = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 89)) { - _impl_.maximum_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // bool exclusive_maximum = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) { - _impl_.exclusive_maximum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // double minimum = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 105)) { - _impl_.minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // bool exclusive_minimum = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) { - _impl_.exclusive_minimum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 max_length = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) { - _impl_.max_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 min_length = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) { - _impl_.min_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // string pattern = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 138)) { - auto str = _internal_mutable_pattern(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern")); - } else { - goto handle_unusual; - } - continue; - // uint64 max_items = 20; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 160)) { - _impl_.max_items_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 min_items = 21; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 168)) { - _impl_.min_items_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // bool unique_items = 22; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 176)) { - _impl_.unique_items_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 max_properties = 24; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 192)) { - _impl_.max_properties_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // uint64 min_properties = 25; - case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 200)) { - _impl_.min_properties_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated string required = 26; - case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 210)) { - ptr -= 2; - do { - ptr += 2; - auto str = _internal_add_required(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<210>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated string array = 34; - case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 2; - do { - ptr += 2; - auto str = _internal_add_array(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<274>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - case 35: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_type(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 24) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_add_type(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes>(val)); - } else { - goto handle_unusual; - } - continue; - // string format = 36; - case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_format(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format")); - } else { - goto handle_unusual; - } - continue; - // repeated string enum = 46; - case 46: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 114)) { - ptr -= 2; - do { - ptr += 2; - auto str = _internal_add_enum_(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<370>(ptr)); - } else { - goto handle_unusual; - } - continue; - // map extensions = 48; - case 48: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 130)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<386>(ptr)); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - case 1001: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_field_configuration(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* JSONSchema::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 26, 3, 158, 12> JSONSchema::_table_ = { + { + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._has_bits_), + 0, // no _extensions_ + 1001, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4232445963, // skipmap + offsetof(decltype(_table_), field_entries), + 26, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_JSONSchema_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // string ref = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string title = 5; + {::_pbi::TcParser::FastUS1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_)}}, + // string description = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_)}}, + // string default = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__)}}, + // bool read_only = 8; + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_)}}, + // string example = 9; + {::_pbi::TcParser::FastUS1, + {74, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_)}}, + // double multiple_of = 10; + {::_pbi::TcParser::FastF64S1, + {81, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_)}}, + // double maximum = 11; + {::_pbi::TcParser::FastF64S1, + {89, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_)}}, + // bool exclusive_maximum = 12; + {::_pbi::TcParser::SingularVarintNoZag1(), + {96, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_)}}, + // double minimum = 13; + {::_pbi::TcParser::FastF64S1, + {105, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_)}}, + // bool exclusive_minimum = 14; + {::_pbi::TcParser::SingularVarintNoZag1(), + {112, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_)}}, + // uint64 max_length = 15; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(JSONSchema, _impl_.max_length_), 63>(), + {120, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_)}}, + // uint64 min_length = 16; + {::_pbi::TcParser::FastV64S2, + {384, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_)}}, + // string pattern = 17; + {::_pbi::TcParser::FastUS2, + {394, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_)}}, + // repeated string array = 34; + {::_pbi::TcParser::FastUR2, + {658, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; + {::_pbi::TcParser::FastV32P2, + {666, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_)}}, + // uint64 max_items = 20; + {::_pbi::TcParser::FastV64S2, + {416, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_)}}, + // uint64 min_items = 21; + {::_pbi::TcParser::FastV64S2, + {424, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_)}}, + // bool unique_items = 22; + {::_pbi::TcParser::FastV8S2, + {432, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint64 max_properties = 24; + {::_pbi::TcParser::FastV64S2, + {448, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_)}}, + // uint64 min_properties = 25; + {::_pbi::TcParser::FastV64S2, + {456, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_)}}, + // repeated string required = 26; + {::_pbi::TcParser::FastUR2, + {466, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated string enum = 46; + {::_pbi::TcParser::FastUR2, + {754, 63, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 34, 0, 1, + 45048, 20,1001, 0, 1, + 65534, 25, + 65535, 65535 + }}, {{ + // string ref = 3; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string title = 5; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 6; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 7; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 8; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // string example = 9; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // double multiple_of = 10; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // double maximum = 11; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // bool exclusive_maximum = 12; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // double minimum = 13; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, + // bool exclusive_minimum = 14; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint64 max_length = 15; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // uint64 min_length = 16; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // string pattern = 17; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 max_items = 20; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // uint64 min_items = 21; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // bool unique_items = 22; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + // uint64 max_properties = 24; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // uint64 min_properties = 25; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + // repeated string required = 26; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string array = 34; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // string format = 36; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.format_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string enum = 46; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map extensions = 48; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.field_configuration_), _Internal::kHasBitsOffset + 0, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(JSONSchema()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>()}, + }}, {{ + "\64\3\5\13\7\0\7\0\0\0\0\0\0\0\7\0\0\0\0\0\10\5\0\6\4\12\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema" + "ref" + "title" + "description" + "default" + "example" + "pattern" + "required" + "array" + "format" + "enum" + "extensions" + }}, +}; + ::uint8_t* JSONSchema::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string ref = 3; if (!this->_internal_ref().empty()) { const std::string& _s = this->_internal_ref(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref"); target = stream->WriteStringMaybeAliased(3, _s, target); } // string title = 5; if (!this->_internal_title().empty()) { const std::string& _s = this->_internal_title(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title"); target = stream->WriteStringMaybeAliased(5, _s, target); } // string description = 6; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description"); target = stream->WriteStringMaybeAliased(6, _s, target); } // string default = 7; if (!this->_internal_default_().empty()) { const std::string& _s = this->_internal_default_(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default"); target = stream->WriteStringMaybeAliased(7, _s, target); } @@ -6421,13 +5643,14 @@ ::uint8_t* JSONSchema::_InternalSerialize( // string example = 9; if (!this->_internal_example().empty()) { const std::string& _s = this->_internal_example(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example"); target = stream->WriteStringMaybeAliased(9, _s, target); } // double multiple_of = 10; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_multiple_of = this->_internal_multiple_of(); ::uint64_t raw_multiple_of; memcpy(&raw_multiple_of, &tmp_multiple_of, sizeof(tmp_multiple_of)); @@ -6438,7 +5661,8 @@ ::uint8_t* JSONSchema::_InternalSerialize( } // double maximum = 11; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_maximum = this->_internal_maximum(); ::uint64_t raw_maximum; memcpy(&raw_maximum, &tmp_maximum, sizeof(tmp_maximum)); @@ -6456,7 +5680,8 @@ ::uint8_t* JSONSchema::_InternalSerialize( } // double minimum = 13; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_minimum = this->_internal_minimum(); ::uint64_t raw_minimum; memcpy(&raw_minimum, &tmp_minimum, sizeof(tmp_minimum)); @@ -6490,8 +5715,8 @@ ::uint8_t* JSONSchema::_InternalSerialize( // string pattern = 17; if (!this->_internal_pattern().empty()) { const std::string& _s = this->_internal_pattern(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern"); target = stream->WriteStringMaybeAliased(17, _s, target); } @@ -6532,23 +5757,23 @@ ::uint8_t* JSONSchema::_InternalSerialize( // repeated string required = 26; for (int i = 0, n = this->_internal_required_size(); i < n; ++i) { - const auto& s = this->_internal_required(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required"); + const auto& s = this->_internal_required().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required"); target = stream->WriteString(26, s, target); } // repeated string array = 34; for (int i = 0, n = this->_internal_array_size(); i < n; ++i) { - const auto& s = this->_internal_array(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array"); + const auto& s = this->_internal_array().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array"); target = stream->WriteString(34, s, target); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; { - int byte_size = _impl_._type_cached_byte_size_.Get(); + std::size_t byte_size = _impl_._type_cached_byte_size_.Get(); if (byte_size > 0) { target = stream->WriteEnumPacked(35, _internal_type(), byte_size, target); @@ -6558,40 +5783,42 @@ ::uint8_t* JSONSchema::_InternalSerialize( // string format = 36; if (!this->_internal_format().empty()) { const std::string& _s = this->_internal_format(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format"); target = stream->WriteStringMaybeAliased(36, _s, target); } // repeated string enum = 46; for (int i = 0, n = this->_internal_enum__size(); i < n; ++i) { - const auto& s = this->_internal_enum_(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum"); + const auto& s = this->_internal_enum_().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum"); target = stream->WriteString(46, s, target); } // map extensions = 48; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = JSONSchema_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(48, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 48, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(48, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 48, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions"); } } } @@ -6599,14 +5826,14 @@ ::uint8_t* JSONSchema::_InternalSerialize( cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1001, _Internal::field_configuration(this), - _Internal::field_configuration(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1001, *_impl_.field_configuration_, _impl_.field_configuration_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) return target; @@ -6621,19 +5848,17 @@ ::size_t JSONSchema::ByteSizeLong() const { (void) cached_has_bits; // repeated string required = 26; - total_size += 2 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_required().size()); + total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_required().size()); for (int i = 0, n = _internal_required().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_required().Get(i)); } - // repeated string array = 34; - total_size += 2 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_array().size()); + total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_array().size()); for (int i = 0, n = _internal_array().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_array().Get(i)); } - // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; { std::size_t data_size = 0; @@ -6641,7 +5866,7 @@ ::size_t JSONSchema::ByteSizeLong() const { for (std::size_t i = 0; i < count; ++i) { data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_type(static_cast(i))); + this->_internal_type().Get(static_cast(i))); } total_size += data_size; if (data_size > 0) { @@ -6651,75 +5876,71 @@ ::size_t JSONSchema::ByteSizeLong() const { } _impl_._type_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); } - // repeated string enum = 46; - total_size += 2 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_enum_().size()); + total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_enum_().size()); for (int i = 0, n = _internal_enum_().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_enum_().Get(i)); } - // map extensions = 48; - total_size += 2 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += JSONSchema_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string ref = 3; if (!this->_internal_ref().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_ref()); } // string title = 5; if (!this->_internal_title().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_title()); } // string description = 6; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string default = 7; if (!this->_internal_default_().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_default_()); } // string example = 9; if (!this->_internal_example().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_example()); } // string pattern = 17; if (!this->_internal_pattern().empty()) { - total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_pattern()); } // string format = 36; if (!this->_internal_format().empty()) { - total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_format()); } // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.field_configuration_); + total_size += + 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.field_configuration_); } // double multiple_of = 10; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_multiple_of = this->_internal_multiple_of(); ::uint64_t raw_multiple_of; memcpy(&raw_multiple_of, &tmp_multiple_of, sizeof(tmp_multiple_of)); @@ -6728,7 +5949,8 @@ ::size_t JSONSchema::ByteSizeLong() const { } // double maximum = 11; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_maximum = this->_internal_maximum(); ::uint64_t raw_maximum; memcpy(&raw_maximum, &tmp_maximum, sizeof(tmp_maximum)); @@ -6737,7 +5959,8 @@ ::size_t JSONSchema::ByteSizeLong() const { } // double minimum = 13; - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_minimum = this->_internal_minimum(); ::uint64_t raw_minimum; memcpy(&raw_minimum, &tmp_minimum, sizeof(tmp_minimum)); @@ -6804,16 +6027,11 @@ ::size_t JSONSchema::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData JSONSchema::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - JSONSchema::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*JSONSchema::GetClassData() const { return &_class_data_; } - -void JSONSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -6845,62 +6063,72 @@ void JSONSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO if (!from._internal_format().empty()) { _this->_internal_set_format(from._internal_format()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_field_configuration()->::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration::MergeFrom( - from._internal_field_configuration()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.field_configuration_ != nullptr); + if (_this->_impl_.field_configuration_ == nullptr) { + _this->_impl_.field_configuration_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(arena, *from._impl_.field_configuration_); + } else { + _this->_impl_.field_configuration_->MergeFrom(*from._impl_.field_configuration_); + } } - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_multiple_of = from._internal_multiple_of(); ::uint64_t raw_multiple_of; memcpy(&raw_multiple_of, &tmp_multiple_of, sizeof(tmp_multiple_of)); if (raw_multiple_of != 0) { - _this->_internal_set_multiple_of(from._internal_multiple_of()); + _this->_impl_.multiple_of_ = from._impl_.multiple_of_; } - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_maximum = from._internal_maximum(); ::uint64_t raw_maximum; memcpy(&raw_maximum, &tmp_maximum, sizeof(tmp_maximum)); if (raw_maximum != 0) { - _this->_internal_set_maximum(from._internal_maximum()); + _this->_impl_.maximum_ = from._impl_.maximum_; } - static_assert(sizeof(::uint64_t) == sizeof(double), "Code assumes ::uint64_t and double are the same size."); + static_assert(sizeof(::uint64_t) == sizeof(double), + "Code assumes ::uint64_t and double are the same size."); double tmp_minimum = from._internal_minimum(); ::uint64_t raw_minimum; memcpy(&raw_minimum, &tmp_minimum, sizeof(tmp_minimum)); if (raw_minimum != 0) { - _this->_internal_set_minimum(from._internal_minimum()); + _this->_impl_.minimum_ = from._impl_.minimum_; } if (from._internal_max_length() != 0) { - _this->_internal_set_max_length(from._internal_max_length()); + _this->_impl_.max_length_ = from._impl_.max_length_; } if (from._internal_min_length() != 0) { - _this->_internal_set_min_length(from._internal_min_length()); + _this->_impl_.min_length_ = from._impl_.min_length_; } if (from._internal_max_items() != 0) { - _this->_internal_set_max_items(from._internal_max_items()); + _this->_impl_.max_items_ = from._impl_.max_items_; } if (from._internal_min_items() != 0) { - _this->_internal_set_min_items(from._internal_min_items()); + _this->_impl_.min_items_ = from._impl_.min_items_; } if (from._internal_max_properties() != 0) { - _this->_internal_set_max_properties(from._internal_max_properties()); + _this->_impl_.max_properties_ = from._impl_.max_properties_; } if (from._internal_min_properties() != 0) { - _this->_internal_set_min_properties(from._internal_min_properties()); + _this->_impl_.min_properties_ = from._impl_.min_properties_; } if (from._internal_read_only() != 0) { - _this->_internal_set_read_only(from._internal_read_only()); + _this->_impl_.read_only_ = from._impl_.read_only_; } if (from._internal_exclusive_maximum() != 0) { - _this->_internal_set_exclusive_maximum(from._internal_exclusive_maximum()); + _this->_impl_.exclusive_maximum_ = from._impl_.exclusive_maximum_; } if (from._internal_exclusive_minimum() != 0) { - _this->_internal_set_exclusive_minimum(from._internal_exclusive_minimum()); + _this->_impl_.exclusive_minimum_ = from._impl_.exclusive_minimum_; } if (from._internal_unique_items() != 0) { - _this->_internal_set_unique_items(from._internal_unique_items()); + _this->_impl_.unique_items_ = from._impl_.unique_items_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void JSONSchema::CopyFrom(const JSONSchema& from) { @@ -6910,40 +6138,29 @@ void JSONSchema::CopyFrom(const JSONSchema& from) { MergeFrom(from); } -bool JSONSchema::IsInitialized() const { +PROTOBUF_NOINLINE bool JSONSchema::IsInitialized() const { return true; } -void JSONSchema::InternalSwap(JSONSchema* other) { +void JSONSchema::InternalSwap(JSONSchema* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _internal_mutable_required()->InternalSwap( - other->_internal_mutable_required()); - _internal_mutable_array()->InternalSwap( - other->_internal_mutable_array()); - _internal_mutable_type()->InternalSwap( - other->_internal_mutable_type()); - _internal_mutable_enum_()->InternalSwap( - other->_internal_mutable_enum_()); + _impl_.required_.InternalSwap(&other->_impl_.required_); + _impl_.array_.InternalSwap(&other->_impl_.array_); + _impl_.type_.InternalSwap(&other->_impl_.type_); + _impl_.enum__.InternalSwap(&other->_impl_.enum__); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ref_, lhs_arena, - &other->_impl_.ref_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, lhs_arena, - &other->_impl_.title_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default__, lhs_arena, - &other->_impl_.default__, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.example_, lhs_arena, - &other->_impl_.example_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, lhs_arena, - &other->_impl_.pattern_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.format_, lhs_arena, - &other->_impl_.format_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ref_, &other->_impl_.ref_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default__, &other->_impl_.default__, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.example_, &other->_impl_.example_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, &other->_impl_.pattern_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.format_, &other->_impl_.format_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_) + sizeof(JSONSchema::_impl_.unique_items_) - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.field_configuration_)>( @@ -6951,10 +6168,10 @@ void JSONSchema::InternalSwap(JSONSchema* other) { reinterpret_cast(&other->_impl_.field_configuration_)); } -::PROTOBUF_NAMESPACE_ID::Metadata JSONSchema::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[19]); +::google::protobuf::Metadata JSONSchema::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[19]); } // =================================================================== @@ -6963,81 +6180,75 @@ class Tag::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs(const Tag* msg); - static void set_has_external_docs(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& -Tag::_Internal::external_docs(const Tag* msg) { - return *msg->_impl_.external_docs_; -} -Tag::Tag(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Tag::Tag(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } -Tag::Tag(const Tag& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Tag* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.description_) {} - - , decltype(_impl_.external_docs_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.external_docs_ = new ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation(*from._impl_.external_docs_); - } +inline PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + description_(arena, from.description_) {} + +Tag::Tag( + ::google::protobuf::Arena* arena, + const Tag& from) + : ::google::protobuf::Message(arena) { + Tag* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.external_docs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>( + arena, *from._impl_.external_docs_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } +inline PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + description_(arena) {} inline void Tag::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.description_) {} - - , decltype(_impl_.external_docs_){nullptr} - }; - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.external_docs_ = {}; } - Tag::~Tag() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Tag::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); + ABSL_DCHECK(GetArena() == nullptr); _impl_.description_.Destroy(); - if (this != internal_default_instance()) delete _impl_.external_docs_; -} - -void Tag::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Tag::Clear() { + delete _impl_.external_docs_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Tag::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Tag, _impl_._cached_size_), + false, + }, + &Tag::MergeImpl, + &Tag::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Tag::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -7049,85 +6260,84 @@ void Tag::Clear() { _impl_.external_docs_->Clear(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Tag::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.Tag.description")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_external_docs(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Tag::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 65, 2> Tag::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_), + 0, // no _extensions_ + 3, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967289, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Tag_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Tag>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + }}, {{ + "\55\13\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Tag" + "description" + }}, +}; + ::uint8_t* Tag::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // string description = 2; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Tag.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Tag.description"); target = stream->WriteStringMaybeAliased(2, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::external_docs(this), - _Internal::external_docs(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *_impl_.external_docs_, _impl_.external_docs_->GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Tag) return target; @@ -7143,31 +6353,25 @@ ::size_t Tag::ByteSizeLong() const { // string description = 2; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.external_docs_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.external_docs_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Tag::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Tag::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Tag::GetClassData() const { return &_class_data_; } - -void Tag::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -7176,11 +6380,18 @@ void Tag::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_N if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_external_docs()->::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation::MergeFrom( - from._internal_external_docs()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.external_docs_ != nullptr); + if (_this->_impl_.external_docs_ == nullptr) { + _this->_impl_.external_docs_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(arena, *from._impl_.external_docs_); + } else { + _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); + } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Tag::CopyFrom(const Tag& from) { @@ -7190,38 +6401,34 @@ void Tag::CopyFrom(const Tag& from) { MergeFrom(from); } -bool Tag::IsInitialized() const { +PROTOBUF_NOINLINE bool Tag::IsInitialized() const { return true; } -void Tag::InternalSwap(Tag* other) { +void Tag::InternalSwap(Tag* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); swap(_impl_.external_docs_, other->_impl_.external_docs_); } -::PROTOBUF_NAMESPACE_ID::Metadata Tag::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[20]); +::google::protobuf::Metadata Tag::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[20]); } // =================================================================== SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() {} -SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void SecurityDefinitions_SecurityEntry_DoNotUse::MergeFrom(const SecurityDefinitions_SecurityEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata SecurityDefinitions_SecurityEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[21]); +::google::protobuf::Metadata SecurityDefinitions_SecurityEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[21]); } // =================================================================== @@ -7229,136 +6436,156 @@ class SecurityDefinitions::_Internal { public: }; -SecurityDefinitions::SecurityDefinitions(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SecurityDefinitions::SecurityDefinitions(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } -SecurityDefinitions::SecurityDefinitions(const SecurityDefinitions& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SecurityDefinitions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.security_)*/{} - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : security_{visibility, arena, from.security_}, + _cached_size_{0} {} + +SecurityDefinitions::SecurityDefinitions( + ::google::protobuf::Arena* arena, + const SecurityDefinitions& from) + : ::google::protobuf::Message(arena) { + SecurityDefinitions* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.security_.MergeFrom(from._impl_.security_); // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } +inline PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : security_{visibility, arena}, + _cached_size_{0} {} inline void SecurityDefinitions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_.security_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - SecurityDefinitions::~SecurityDefinitions() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SecurityDefinitions::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.security_.~MapField(); -} - -void SecurityDefinitions::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SecurityDefinitions::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +SecurityDefinitions::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._cached_size_), + false, + }, + &SecurityDefinitions::MergeImpl, + &SecurityDefinitions::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void SecurityDefinitions::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.security_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SecurityDefinitions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // map security = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.security_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SecurityDefinitions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 2, 78, 2> SecurityDefinitions::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SecurityDefinitions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // map security = 1; + {PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_.security_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(SecurityDefinitions()._impl_.security_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>}, + }}, {{ + "\75\10\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" + "security" + }}, +}; + ::uint8_t* SecurityDefinitions::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // map security = 1; - if (!this->_internal_security().empty()) { - using MapType = ::_pb::Map; - using WireHelper = SecurityDefinitions_SecurityEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_security(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_security().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_security(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) return target; @@ -7373,25 +6600,17 @@ ::size_t SecurityDefinitions::ByteSizeLong() const { (void) cached_has_bits; // map security = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_security_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >::const_iterator - it = this->_internal_security().begin(); - it != this->_internal_security().end(); ++it) { - total_size += SecurityDefinitions_SecurityEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_security_size()); + for (const auto& entry : _internal_security()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SecurityDefinitions::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SecurityDefinitions::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SecurityDefinitions::GetClassData() const { return &_class_data_; } - -void SecurityDefinitions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SecurityDefinitions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) @@ -7400,7 +6619,7 @@ void SecurityDefinitions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co (void) cached_has_bits; _this->_impl_.security_.MergeFrom(from._impl_.security_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { @@ -7410,33 +6629,30 @@ void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { MergeFrom(from); } -bool SecurityDefinitions::IsInitialized() const { +PROTOBUF_NOINLINE bool SecurityDefinitions::IsInitialized() const { return true; } -void SecurityDefinitions::InternalSwap(SecurityDefinitions* other) { +void SecurityDefinitions::InternalSwap(SecurityDefinitions* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.security_.InternalSwap(&other->_impl_.security_); } -::PROTOBUF_NAMESPACE_ID::Metadata SecurityDefinitions::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[22]); +::google::protobuf::Metadata SecurityDefinitions::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[22]); } // =================================================================== SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() {} -SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void SecurityScheme_ExtensionsEntry_DoNotUse::MergeFrom(const SecurityScheme_ExtensionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata SecurityScheme_ExtensionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[23]); +::google::protobuf::Metadata SecurityScheme_ExtensionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[23]); } // =================================================================== @@ -7445,151 +6661,102 @@ class SecurityScheme::_Internal { using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_); - static const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes(const SecurityScheme* msg); - static void set_has_scopes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } }; -const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& -SecurityScheme::_Internal::scopes(const SecurityScheme* msg) { - return *msg->_impl_.scopes_; -} void SecurityScheme::clear_extensions() { + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); _impl_.extensions_.Clear(); } -SecurityScheme::SecurityScheme(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SecurityScheme::SecurityScheme(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } -SecurityScheme::SecurityScheme(const SecurityScheme& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SecurityScheme* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{} - , decltype(_impl_.description_) {} +inline PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + extensions_{visibility, arena, from.extensions_}, + description_(arena, from.description_), + name_(arena, from.name_), + authorization_url_(arena, from.authorization_url_), + token_url_(arena, from.token_url_) {} + +SecurityScheme::SecurityScheme( + ::google::protobuf::Arena* arena, + const SecurityScheme& from) + : ::google::protobuf::Message(arena) { + SecurityScheme* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.scopes_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>( + arena, *from._impl_.scopes_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, flow_) - + offsetof(Impl_, type_) + + sizeof(Impl_::flow_)); - , decltype(_impl_.name_) {} - - , decltype(_impl_.authorization_url_) {} - - , decltype(_impl_.token_url_) {} - - , decltype(_impl_.scopes_){nullptr} - , decltype(_impl_.type_) {} - - , decltype(_impl_.in_) {} - - , decltype(_impl_.flow_) {} - }; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_description().empty()) { - _this->_impl_.description_.Set(from._internal_description(), _this->GetArenaForAllocation()); - } - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.authorization_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.authorization_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_authorization_url().empty()) { - _this->_impl_.authorization_url_.Set(from._internal_authorization_url(), _this->GetArenaForAllocation()); - } - _impl_.token_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.token_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_token_url().empty()) { - _this->_impl_.token_url_.Set(from._internal_token_url(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.scopes_ = new ::grpc::gateway::protoc_gen_openapiv2::options::Scopes(*from._impl_.scopes_); - } - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast<::size_t>(reinterpret_cast(&_impl_.flow_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.flow_)); // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } +inline PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + extensions_{visibility, arena}, + description_(arena), + name_(arena), + authorization_url_(arena), + token_url_(arena) {} inline void SecurityScheme::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.extensions_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.description_) {} - - , decltype(_impl_.name_) {} - - , decltype(_impl_.authorization_url_) {} - - , decltype(_impl_.token_url_) {} - - , decltype(_impl_.scopes_){nullptr} - , decltype(_impl_.type_) { 0 } - - , decltype(_impl_.in_) { 0 } - - , decltype(_impl_.flow_) { 0 } - - }; - _impl_.description_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.description_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.authorization_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.authorization_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.token_url_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.token_url_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, scopes_), + 0, + offsetof(Impl_, flow_) - + offsetof(Impl_, scopes_) + + sizeof(Impl_::flow_)); } - SecurityScheme::~SecurityScheme() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SecurityScheme::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.extensions_.~MapField(); + ABSL_DCHECK(GetArena() == nullptr); _impl_.description_.Destroy(); _impl_.name_.Destroy(); _impl_.authorization_url_.Destroy(); _impl_.token_url_.Destroy(); - if (this != internal_default_instance()) delete _impl_.scopes_; -} - -void SecurityScheme::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SecurityScheme::Clear() { + delete _impl_.scopes_; + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +SecurityScheme::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._cached_size_), + false, + }, + &SecurityScheme::MergeImpl, + &SecurityScheme::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void SecurityScheme::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -7608,142 +6775,112 @@ void SecurityScheme::Clear() { reinterpret_cast(&_impl_.flow_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.flow_)); _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SecurityScheme::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type>(val)); - } else { - goto handle_unusual; - } - continue; - // string description = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_description(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description")); - } else { - goto handle_unusual; - } - continue; - // string name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_in(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In>(val)); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - _internal_set_flow(static_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow>(val)); - } else { - goto handle_unusual; - } - continue; - // string authorization_url = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_authorization_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url")); - } else { - goto handle_unusual; - } - continue; - // string token_url = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_token_url(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url")); - } else { - goto handle_unusual; - } - continue; - // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_scopes(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // map extensions = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.extensions_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SecurityScheme::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 9, 3, 124, 2> SecurityScheme::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_), + 0, // no _extensions_ + 9, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SecurityScheme_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + {::_pbi::TcParser::FastMtS1, + {66, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SecurityScheme, _impl_.type_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_)}}, + // string name = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SecurityScheme, _impl_.in_), 63>(), + {32, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SecurityScheme, _impl_.flow_), 63>(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_)}}, + // string authorization_url = 6; + {::_pbi::TcParser::FastUS1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_)}}, + // string token_url = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string name = 3; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string authorization_url = 6; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string token_url = 7; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 9; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(SecurityScheme()._impl_.extensions_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::google::protobuf::Value>}, + }}, {{ + "\70\0\13\4\0\0\21\11\0\12\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme" + "description" + "name" + "authorization_url" + "token_url" + "extensions" + }}, +}; + ::uint8_t* SecurityScheme::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; if (this->_internal_type() != 0) { @@ -7755,16 +6892,16 @@ ::uint8_t* SecurityScheme::_InternalSerialize( // string description = 2; if (!this->_internal_description().empty()) { const std::string& _s = this->_internal_description(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description"); target = stream->WriteStringMaybeAliased(2, _s, target); } // string name = 3; if (!this->_internal_name().empty()) { const std::string& _s = this->_internal_name(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name"); target = stream->WriteStringMaybeAliased(3, _s, target); } @@ -7785,55 +6922,57 @@ ::uint8_t* SecurityScheme::_InternalSerialize( // string authorization_url = 6; if (!this->_internal_authorization_url().empty()) { const std::string& _s = this->_internal_authorization_url(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url"); target = stream->WriteStringMaybeAliased(6, _s, target); } // string token_url = 7; if (!this->_internal_token_url().empty()) { const std::string& _s = this->_internal_token_url(); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url"); target = stream->WriteStringMaybeAliased(7, _s, target); } cached_has_bits = _impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; if (cached_has_bits & 0x00000001u) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::scopes(this), - _Internal::scopes(this).GetCachedSize(), target, stream); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *_impl_.scopes_, _impl_.scopes_->GetCachedSize(), target, stream); } // map extensions = 9; - if (!this->_internal_extensions().empty()) { - using MapType = ::_pb::Map; - using WireHelper = SecurityScheme_ExtensionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_extensions(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_extensions(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) return target; @@ -7848,44 +6987,41 @@ ::size_t SecurityScheme::ByteSizeLong() const { (void) cached_has_bits; // map extensions = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extensions_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::PROTOBUF_NAMESPACE_ID::Value >::const_iterator - it = this->_internal_extensions().begin(); - it != this->_internal_extensions().end(); ++it) { - total_size += SecurityScheme_ExtensionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_extensions_size()); + for (const auto& entry : _internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - // string description = 2; if (!this->_internal_description().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_description()); } // string name = 3; if (!this->_internal_name().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_name()); } // string authorization_url = 6; if (!this->_internal_authorization_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_authorization_url()); } // string token_url = 7; if (!this->_internal_token_url().empty()) { - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->_internal_token_url()); } // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.scopes_); + total_size += + 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.scopes_); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; @@ -7909,16 +7045,11 @@ ::size_t SecurityScheme::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SecurityScheme::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SecurityScheme::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SecurityScheme::GetClassData() const { return &_class_data_; } - -void SecurityScheme::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; @@ -7937,20 +7068,27 @@ void SecurityScheme::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (!from._internal_token_url().empty()) { _this->_internal_set_token_url(from._internal_token_url()); } - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_scopes()->::grpc::gateway::protoc_gen_openapiv2::options::Scopes::MergeFrom( - from._internal_scopes()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + ABSL_DCHECK(from._impl_.scopes_ != nullptr); + if (_this->_impl_.scopes_ == nullptr) { + _this->_impl_.scopes_ = + ::google::protobuf::Message::CopyConstruct<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(arena, *from._impl_.scopes_); + } else { + _this->_impl_.scopes_->MergeFrom(*from._impl_.scopes_); + } } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _this->_impl_.type_ = from._impl_.type_; } if (from._internal_in() != 0) { - _this->_internal_set_in(from._internal_in()); + _this->_impl_.in_ = from._impl_.in_; } if (from._internal_flow() != 0) { - _this->_internal_set_flow(from._internal_flow()); + _this->_impl_.flow_ = from._impl_.flow_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityScheme::CopyFrom(const SecurityScheme& from) { @@ -7960,26 +7098,22 @@ void SecurityScheme::CopyFrom(const SecurityScheme& from) { MergeFrom(from); } -bool SecurityScheme::IsInitialized() const { +PROTOBUF_NOINLINE bool SecurityScheme::IsInitialized() const { return true; } -void SecurityScheme::InternalSwap(SecurityScheme* other) { +void SecurityScheme::InternalSwap(SecurityScheme* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, lhs_arena, - &other->_impl_.description_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_url_, lhs_arena, - &other->_impl_.authorization_url_, rhs_arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_url_, lhs_arena, - &other->_impl_.token_url_, rhs_arena); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_url_, &other->_impl_.authorization_url_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.token_url_, &other->_impl_.token_url_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_) + sizeof(SecurityScheme::_impl_.flow_) - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_)>( @@ -7987,10 +7121,10 @@ void SecurityScheme::InternalSwap(SecurityScheme* other) { reinterpret_cast(&other->_impl_.scopes_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SecurityScheme::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[24]); +::google::protobuf::Metadata SecurityScheme::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[24]); } // =================================================================== @@ -7998,120 +7132,135 @@ class SecurityRequirement_SecurityRequirementValue::_Internal { public: }; -SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } -SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(const SecurityRequirement_SecurityRequirementValue& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SecurityRequirement_SecurityRequirementValue* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.scope_){from._impl_.scope_} - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : scope_{visibility, arena, from.scope_}, + _cached_size_{0} {} + +SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue( + ::google::protobuf::Arena* arena, + const SecurityRequirement_SecurityRequirementValue& from) + : ::google::protobuf::Message(arena) { + SecurityRequirement_SecurityRequirementValue* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } +inline PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : scope_{visibility, arena}, + _cached_size_{0} {} inline void SecurityRequirement_SecurityRequirementValue::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.scope_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - SecurityRequirement_SecurityRequirementValue::~SecurityRequirement_SecurityRequirementValue() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SecurityRequirement_SecurityRequirementValue::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_scope()->~RepeatedPtrField(); -} - -void SecurityRequirement_SecurityRequirementValue::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SecurityRequirement_SecurityRequirementValue::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +SecurityRequirement_SecurityRequirementValue::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._cached_size_), + false, + }, + &SecurityRequirement_SecurityRequirementValue::MergeImpl, + &SecurityRequirement_SecurityRequirementValue::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void SecurityRequirement_SecurityRequirementValue::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _internal_mutable_scope()->Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SecurityRequirement_SecurityRequirementValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated string scope = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_scope(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _impl_.scope_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SecurityRequirement_SecurityRequirementValue::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 100, 2> SecurityRequirement_SecurityRequirementValue::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_SecurityRequirement_SecurityRequirementValue_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated string scope = 1; + {::_pbi::TcParser::FastUR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string scope = 1; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\126\5\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue" + "scope" + }}, +}; + ::uint8_t* SecurityRequirement_SecurityRequirementValue::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // repeated string scope = 1; for (int i = 0, n = this->_internal_scope_size(); i < n; ++i) { - const auto& s = this->_internal_scope(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope"); + const auto& s = this->_internal_scope().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope"); target = stream->WriteString(1, s, target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) return target; @@ -8126,23 +7275,16 @@ ::size_t SecurityRequirement_SecurityRequirementValue::ByteSizeLong() const { (void) cached_has_bits; // repeated string scope = 1; - total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_scope().size()); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_scope().size()); for (int i = 0, n = _internal_scope().size(); i < n; ++i) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( _internal_scope().Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SecurityRequirement_SecurityRequirementValue::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SecurityRequirement_SecurityRequirementValue::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SecurityRequirement_SecurityRequirementValue::GetClassData() const { return &_class_data_; } - -void SecurityRequirement_SecurityRequirementValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SecurityRequirement_SecurityRequirementValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) @@ -8151,7 +7293,7 @@ void SecurityRequirement_SecurityRequirementValue::MergeImpl(::PROTOBUF_NAMESPAC (void) cached_has_bits; _this->_internal_mutable_scope()->MergeFrom(from._internal_scope()); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequirement_SecurityRequirementValue& from) { @@ -8161,34 +7303,30 @@ void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequir MergeFrom(from); } -bool SecurityRequirement_SecurityRequirementValue::IsInitialized() const { +PROTOBUF_NOINLINE bool SecurityRequirement_SecurityRequirementValue::IsInitialized() const { return true; } -void SecurityRequirement_SecurityRequirementValue::InternalSwap(SecurityRequirement_SecurityRequirementValue* other) { +void SecurityRequirement_SecurityRequirementValue::InternalSwap(SecurityRequirement_SecurityRequirementValue* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _internal_mutable_scope()->InternalSwap( - other->_internal_mutable_scope()); + _impl_.scope_.InternalSwap(&other->_impl_.scope_); } -::PROTOBUF_NAMESPACE_ID::Metadata SecurityRequirement_SecurityRequirementValue::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[25]); +::google::protobuf::Metadata SecurityRequirement_SecurityRequirementValue::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[25]); } // =================================================================== SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() {} -SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void SecurityRequirement_SecurityRequirementEntry_DoNotUse::MergeFrom(const SecurityRequirement_SecurityRequirementEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[26]); +::google::protobuf::Metadata SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[26]); } // =================================================================== @@ -8196,136 +7334,156 @@ class SecurityRequirement::_Internal { public: }; -SecurityRequirement::SecurityRequirement(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SecurityRequirement::SecurityRequirement(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } -SecurityRequirement::SecurityRequirement(const SecurityRequirement& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SecurityRequirement* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.security_requirement_)*/{} - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : security_requirement_{visibility, arena, from.security_requirement_}, + _cached_size_{0} {} + +SecurityRequirement::SecurityRequirement( + ::google::protobuf::Arena* arena, + const SecurityRequirement& from) + : ::google::protobuf::Message(arena) { + SecurityRequirement* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } +inline PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : security_requirement_{visibility, arena}, + _cached_size_{0} {} inline void SecurityRequirement::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_.security_requirement_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - SecurityRequirement::~SecurityRequirement() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void SecurityRequirement::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.security_requirement_.~MapField(); -} - -void SecurityRequirement::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SecurityRequirement::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +SecurityRequirement::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._cached_size_), + false, + }, + &SecurityRequirement::MergeImpl, + &SecurityRequirement::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void SecurityRequirement::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.security_requirement_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SecurityRequirement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // map security_requirement = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.security_requirement_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* SecurityRequirement::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 2, 90, 2> SecurityRequirement::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SecurityRequirement_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // map security_requirement = 1; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_.security_requirement_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(SecurityRequirement()._impl_.security_requirement_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::CreateInArenaStorageCb<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>}, + }}, {{ + "\75\24\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement" + "security_requirement" + }}, +}; + ::uint8_t* SecurityRequirement::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // map security_requirement = 1; - if (!this->_internal_security_requirement().empty()) { - using MapType = ::_pb::Map; - using WireHelper = SecurityRequirement_SecurityRequirementEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_security_requirement(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_security_requirement().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_security_requirement(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) return target; @@ -8340,25 +7498,17 @@ ::size_t SecurityRequirement::ByteSizeLong() const { (void) cached_has_bits; // map security_requirement = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_security_requirement_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >::const_iterator - it = this->_internal_security_requirement().begin(); - it != this->_internal_security_requirement().end(); ++it) { - total_size += SecurityRequirement_SecurityRequirementEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_security_requirement_size()); + for (const auto& entry : _internal_security_requirement()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SecurityRequirement::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SecurityRequirement::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SecurityRequirement::GetClassData() const { return &_class_data_; } - -void SecurityRequirement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void SecurityRequirement::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) @@ -8367,7 +7517,7 @@ void SecurityRequirement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co (void) cached_has_bits; _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { @@ -8377,33 +7527,30 @@ void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { MergeFrom(from); } -bool SecurityRequirement::IsInitialized() const { +PROTOBUF_NOINLINE bool SecurityRequirement::IsInitialized() const { return true; } -void SecurityRequirement::InternalSwap(SecurityRequirement* other) { +void SecurityRequirement::InternalSwap(SecurityRequirement* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.security_requirement_.InternalSwap(&other->_impl_.security_requirement_); } -::PROTOBUF_NAMESPACE_ID::Metadata SecurityRequirement::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[27]); +::google::protobuf::Metadata SecurityRequirement::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[27]); } // =================================================================== Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() {} -Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} -void Scopes_ScopeEntry_DoNotUse::MergeFrom(const Scopes_ScopeEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Scopes_ScopeEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[28]); +::google::protobuf::Metadata Scopes_ScopeEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[28]); } // =================================================================== @@ -8411,139 +7558,161 @@ class Scopes::_Internal { public: }; -Scopes::Scopes(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Scopes::Scopes(::google::protobuf::Arena* arena) + : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } -Scopes::Scopes(const Scopes& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Scopes* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.scope_)*/{} - , /*decltype(_impl_._cached_size_)*/{}}; +inline PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : scope_{visibility, arena, from.scope_}, + _cached_size_{0} {} + +Scopes::Scopes( + ::google::protobuf::Arena* arena, + const Scopes& from) + : ::google::protobuf::Message(arena) { + Scopes* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.scope_.MergeFrom(from._impl_.scope_); // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } +inline PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : scope_{visibility, arena}, + _cached_size_{0} {} inline void Scopes::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_.scope_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_._cached_size_)*/{} - }; + new (&_impl_) Impl_(internal_visibility(), arena); } - Scopes::~Scopes() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } + _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } - inline void Scopes::SharedDtor() { - ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.scope_.~MapField(); -} - -void Scopes::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Scopes::Clear() { + ABSL_DCHECK(GetArena() == nullptr); + _impl_.~Impl_(); +} + +const ::google::protobuf::MessageLite::ClassData* +Scopes::GetClassData() const { + PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: + ClassDataFull _data_ = { + { + nullptr, // OnDemandRegisterArenaDtor + PROTOBUF_FIELD_OFFSET(Scopes, _impl_._cached_size_), + false, + }, + &Scopes::MergeImpl, + &Scopes::kDescriptorMethods, + }; + return &_data_; +} +PROTOBUF_NOINLINE void Scopes::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) + PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.scope_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Scopes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // map scope = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.scope_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +const char* Scopes::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 1, 62, 2> Scopes::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_Scopes_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // map scope = 1; + {PROTOBUF_FIELD_OFFSET(Scopes, _impl_.scope_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Scopes()._impl_.scope_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\60\5\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Scopes" + "scope" + }}, +}; + ::uint8_t* Scopes::_InternalSerialize( - ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; // map scope = 1; - if (!this->_internal_scope().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Scopes_ScopeEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_scope(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + if (!_internal_scope().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = _internal_scope(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); } } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); } } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:grpc.gateway.protoc_gen_openapiv2.options.Scopes) return target; @@ -8558,25 +7727,17 @@ ::size_t Scopes::ByteSizeLong() const { (void) cached_has_bits; // map scope = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_scope_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_scope().begin(); - it != this->_internal_scope().end(); ++it) { - total_size += Scopes_ScopeEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_scope_size()); + for (const auto& entry : _internal_scope()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Scopes::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Scopes::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Scopes::GetClassData() const { return &_class_data_; } - -void Scopes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +void Scopes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) @@ -8585,7 +7746,7 @@ void Scopes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU (void) cached_has_bits; _this->_impl_.scope_.MergeFrom(from._impl_.scope_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Scopes::CopyFrom(const Scopes& from) { @@ -8595,147 +7756,33 @@ void Scopes::CopyFrom(const Scopes& from) { MergeFrom(from); } -bool Scopes::IsInitialized() const { +PROTOBUF_NOINLINE bool Scopes::IsInitialized() const { return true; } -void Scopes::InternalSwap(Scopes* other) { +void Scopes::InternalSwap(Scopes* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.scope_.InternalSwap(&other->_impl_.scope_); } -::PROTOBUF_NAMESPACE_ID::Metadata Scopes::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, - file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[29]); +::google::protobuf::Metadata Scopes::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_getter, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_once, + file_level_metadata_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[29]); } // @@protoc_insertion_point(namespace_scope) } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Swagger* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Operation* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Header* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Header >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Header >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Response* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Response >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Response >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Info* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Info >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Info >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Contact* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Contact >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Contact >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::License* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::License >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::License >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Schema* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Tag* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* -Arena::CreateMaybeMessage< ::grpc::gateway::protoc_gen_openapiv2::options::Scopes >(Arena* arena) { - return Arena::CreateMessageInternal< ::grpc::gateway::protoc_gen_openapiv2::options::Scopes >(arena); -} -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::std::false_type _static_init_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto), + ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/sdks/csharp/sdk/AgonesSDK.nuspec b/sdks/csharp/sdk/AgonesSDK.nuspec index 7559b8e14d..802626486a 100644 --- a/sdks/csharp/sdk/AgonesSDK.nuspec +++ b/sdks/csharp/sdk/AgonesSDK.nuspec @@ -2,7 +2,7 @@ AgonesSDK - 1.45.0-dev + 1.46.0-dev Google LLC Google LLC false diff --git a/sdks/csharp/sdk/csharp-sdk.csproj b/sdks/csharp/sdk/csharp-sdk.csproj index 462f33ab3d..262931fbb7 100644 --- a/sdks/csharp/sdk/csharp-sdk.csproj +++ b/sdks/csharp/sdk/csharp-sdk.csproj @@ -13,7 +13,7 @@ https://agones.dev http://www.apache.org/licenses/LICENSE-2.0 AgonesSDK - 1.45.0-dev + 1.46.0-dev agones, googleforgames, kuberenetes, multiplayer, gameservers agones.dev Debug;Release;DebugProtoGen diff --git a/sdks/nodejs/package-lock.json b/sdks/nodejs/package-lock.json index dbe534162f..99a5678cd5 100644 --- a/sdks/nodejs/package-lock.json +++ b/sdks/nodejs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/agones-sdk", - "version": "1.45.0-dev", + "version": "1.46.0-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/agones-sdk", - "version": "1.45.0-dev", + "version": "1.46.0-dev", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "1.10.9", diff --git a/sdks/nodejs/package.json b/sdks/nodejs/package.json index b6e21dfcce..5b461b92b0 100644 --- a/sdks/nodejs/package.json +++ b/sdks/nodejs/package.json @@ -26,5 +26,5 @@ "publishConfig": { "access": "public" }, - "version": "1.45.0-dev" + "version": "1.46.0-dev" } diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 18c7e8fcde..ddcd187745 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "agones" -version = "1.45.0-dev" +version = "1.46.0-dev" edition = "2021" description = "The Rust SDK for Agones." license = "Apache-2.0" diff --git a/sdks/rust/proto/allocation/allocation.proto b/sdks/rust/proto/allocation/allocation.proto index 58d249eb11..8ef8111fe4 100644 --- a/sdks/rust/proto/allocation/allocation.proto +++ b/sdks/rust/proto/allocation/allocation.proto @@ -90,12 +90,12 @@ message AllocationRequest { // // For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the // order that `GameServers` will be allocated by. - repeated Priority priorities = 9; + repeated Priority priorities = 9; // [Stage: Beta] // [FeatureFlag:CountsAndLists] // Counters and Lists provide a set of actions to perform - // on Counters and Lists during allocation. + // on Counters and Lists during allocation. map counters = 10; map lists = 11; } @@ -191,10 +191,10 @@ message PlayerSelector { // CounterSelector is the filter options for a GameServer based on the count and/or available capacity. // 0 for MaxCount or MaxAvailable means unlimited maximum. Default for all fields: 0 message CounterSelector { - int64 minCount = 1; - int64 maxCount = 2; - int64 minAvailable = 3; - int64 maxAvailable = 4; + int64 minCount = 1; + int64 maxCount = 2; + int64 minAvailable = 3; + int64 maxAvailable = 4; } // ListSelector is the filter options for a GameServer based on List available capacity and/or the @@ -202,9 +202,9 @@ message CounterSelector { // 0 for MaxAvailable means unlimited maximum. Default for integer fields: 0 // "" for ContainsValue means ignore field. Default for string field: "" message ListSelector { - string containsValue = 1; - int64 minAvailable = 2; - int64 maxAvailable = 3; + string containsValue = 1; + int64 minAvailable = 2; + int64 maxAvailable = 3; } // Priority is a sorting option for GameServers with Counters or Lists based on the Capacity. @@ -232,14 +232,16 @@ message Priority { // Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max int64. message CounterAction { google.protobuf.StringValue action = 1; - google.protobuf.Int64Value amount = 2; - google.protobuf.Int64Value capacity = 3; + google.protobuf.Int64Value amount = 2; + google.protobuf.Int64Value capacity = 3; } // ListAction is an optional action that can be performed on a List at allocation. // AddValues: Append values to a List's Values array (optional). Any duplicate values will be ignored. // Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000. +// DeleteValues: Remove values from a List's Values array (optional). Any nonexistant values will be ignored. message ListAction { - repeated string addValues = 1; - google.protobuf.Int64Value capacity = 2; + repeated string addValues = 1; + google.protobuf.Int64Value capacity = 2; + repeated string deleteValues = 3; } diff --git a/sdks/unity/package.json b/sdks/unity/package.json index b0dcf295f3..92f846881e 100644 --- a/sdks/unity/package.json +++ b/sdks/unity/package.json @@ -1,6 +1,6 @@ { "name": "com.googleforgames.agones", - "version": "1.45.0-dev", + "version": "1.46.0-dev", "displayName": "Agones Unity SDK", "description": "The Unity Gameserver SDK for Agones", "unity": "2019.1", diff --git a/site/assets/templates/crd-doc-config.json b/site/assets/templates/crd-doc-config.json index 605c330da9..691c5cf171 100644 --- a/site/assets/templates/crd-doc-config.json +++ b/site/assets/templates/crd-doc-config.json @@ -14,7 +14,7 @@ }, { "typeMatchPrefix": "^k8s\\.io/(api|apimachinery/pkg/apis)/", - "docsURLTemplate": "https://v1-29.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}" + "docsURLTemplate": "https://v1-30.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#{{lower .TypeIdentifier}}-{{arrIndex .PackageSegments -1}}-{{arrIndex .PackageSegments -2}}" }, { "typeMatchPrefix": "^github\\.com/knative/pkg/apis/duck/", diff --git a/site/config.toml b/site/config.toml index f47b4b8e56..ea54432966 100644 --- a/site/config.toml +++ b/site/config.toml @@ -80,24 +80,24 @@ github_repo = "https://github.com/googleforgames/agones" gcs_engine_id = "016691298986124624340:x7qv2dywdao" # current release branch. Never is rc. -release_branch = "release-1.44.0" +release_branch = "release-1.45.0" # the main version. Never is rc. -release_version = "1.44.0" +release_version = "1.45.0" # shown for production -supported_k8s = ["1.28", "1.29", "1.30"] -k8s_api_version = "1.29" -gke_example_cluster_version = "1.29" -aks_example_cluster_version = "1.29" -eks_example_cluster_version = "1.30" -minikube_example_cluster_version = "1.29.7" +supported_k8s = ["1.29", "1.30", "1.31"] +k8s_api_version = "1.30" +gke_example_cluster_version = "1.30" +aks_example_cluster_version = "1.31" +eks_example_cluster_version = "1.31" +minikube_example_cluster_version = "1.30.4" # shown in development (or the next versions that will be supported) -dev_supported_k8s = ["1.28", "1.29", "1.30"] -dev_k8s_api_version = "1.29" -dev_gke_example_cluster_version = "1.29" -dev_aks_example_cluster_version = "1.29" -dev_eks_example_cluster_version = "1.30" -dev_minikube_example_cluster_version = "1.29.7" +dev_supported_k8s = ["1.29", "1.30", "1.31"] +dev_k8s_api_version = "1.30" +dev_gke_example_cluster_version = "1.30" +dev_aks_example_cluster_version = "1.31" +dev_eks_example_cluster_version = "1.31" +dev_minikube_example_cluster_version = "1.30.4" # example tag example_image_tag = "us-docker.pkg.dev/agones-images/examples/simple-game-server:0.35" diff --git a/site/content/en/blog/releases/1.44.0.md b/site/content/en/blog/releases/1.44.0.md index 8dcdac3cfc..e03385515d 100644 --- a/site/content/en/blog/releases/1.44.0.md +++ b/site/content/en/blog/releases/1.44.0.md @@ -18,7 +18,7 @@ In this release, we have added beta support for Extended Duration Pods on GKE Au - **Updated Versions Go v1.22.6 and gRPC v1.65.0 Now Live**: We have upgraded to Go v1.22.6 and gRPC v1.65.0, which bring enhanced performance and crucial security updates. -Check the README for details on features, installation and usage. +Check the README for details on features, installation and usage. **Implemented enhancements:** - Unreal SDK - Added counters to unreal sdk by @GloryOfNight in https://github.com/googleforgames/agones/pull/3935 @@ -29,7 +29,7 @@ Check the CHANGELOG for more details on changes. +See CHANGELOG for more details on changes. Images available with this release: @@ -50,7 +50,7 @@ Images available with this release: Helm chart available with this release: -- +- helm install agones agones/agones --version 1.44.0 > Make sure to add our stable helm repository using `helm repo add agones https://agones.dev/chart/stable` \ No newline at end of file diff --git a/site/content/en/blog/releases/1.45.0.md b/site/content/en/blog/releases/1.45.0.md new file mode 100644 index 0000000000..93cd9ce92c --- /dev/null +++ b/site/content/en/blog/releases/1.45.0.md @@ -0,0 +1,55 @@ +--- +title: "1.45.0 - Kubernetes 1.31 Support, OKE Cluster Setup Documentation, bug fixes and more" +linktitle: "1.45.0" +date: "2024-11-19" +--- + +This is the 1.45.0 release of Agones. + +In this release, we’ve introduced Terraform scripts and updated documentation for setting up Agones on Oracle Kubernetes Engine (OKE). Additionally, we’ve improved support for new Kubernetes versions, enhanced the Fleet Autoscaler, and introduced a new dashboard feature for GameServer state durations. Additionally, we've updated the Rust SDK and added a CI check for versioning in examples. + +- **Updated Kubernetes Version Support (v1.29, v1.30, v1.31)**: Agones now officially supports Kubernetes versions 1.29, 1.30, and 1.31, ensuring compatibility with the latest Kubernetes releases for improved performance and stability. + +- **Terraform Scripts and Documentation for OKE Cluster Setup**: New documentation has been added, including Terraform scripts to help users set up an OKE (Oracle Kubernetes Engine) cluster and install Agones. + +- **Rust SDK Updates**: All Rust SDK dependencies have been updated to the latest versions. This update brings performance improvements, bug fixes, and ensures compatibility with the newest features in Rust. + +- **Fleet Autoscaler Enhancements: List-based Scaling from Zero Replicas**: The Fleet Autoscaler now supports scaling game server fleets from zero replicas when using a type List Fleet Autoscaler. This improves the flexibility of scaling fleets with GitOps based tools. + +- **New Dashboard Feature for GameServer State Duration**: A new dashboard feature has been added that provides insights into the duration of GameServer states. This will help operators monitor and debug the lifecycle of game servers more efficiently. + +Check the README for details on features, installation and usage. + +**Breaking changes:** +- Update Supported Kubernetes to 1.29, 1.30, 1.31 by @kamaljeeti in https://github.com/googleforgames/agones/pull/4024 + +**Implemented enhancements:** +- Dashboard for Agones GameServer State duration by @vicentefb in https://github.com/googleforgames/agones/pull/3947 +- Add Shutdown Delay Seconds to the sdk-client-test containers by @igooch in https://github.com/googleforgames/agones/pull/4030 +- Add a CI check to fail on change to an example without a new version by @wheatear-dev in https://github.com/googleforgames/agones/pull/3940 + +See CHANGELOG for more details on changes. + +Images available with this release: + +- [us-docker.pkg.dev/agones-images/release/agones-controller:1.45.0](https://us-docker.pkg.dev/agones-images/release/agones-controller:1.45.0) +- [us-docker.pkg.dev/agones-images/release/agones-sdk:1.45.0](https://us-docker.pkg.dev/agones-images/release/agones-sdk:1.45.0) +- [us-docker.pkg.dev/agones-images/release/agones-ping:1.45.0](https://us-docker.pkg.dev/agones-images/release/agones-ping:1.45.0) +- [us-docker.pkg.dev/agones-images/release/agones-allocator:1.45.0](https://us-docker.pkg.dev/agones-images/release/agones-allocator:1.45.0) +- [us-docker.pkg.dev/agones-images/examples/allocation-endpoint-proxy:0.10](https://us-docker.pkg.dev/agones-images/examples/allocation-endpoint-proxy:0.10) +- [us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.15](https://us-docker.pkg.dev/agones-images/examples/autoscaler-webhook:0.15) +- [us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.19](https://us-docker.pkg.dev/agones-images/examples/cpp-simple-server:0.19) +- [us-docker.pkg.dev/agones-images/examples/crd-client:0.18](https://us-docker.pkg.dev/agones-images/examples/crd-client:0.18) +- [us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.10](https://us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.10) +- [us-docker.pkg.dev/agones-images/examples/rust-simple-server:0.13](https://us-docker.pkg.dev/agones-images/examples/rust-simple-server:0.13) +- [us-docker.pkg.dev/agones-images/examples/simple-game-server:0.35](https://us-docker.pkg.dev/agones-images/examples/simple-game-server:0.35) +- [us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.15](https://us-docker.pkg.dev/agones-images/examples/supertuxkart-example:0.15) +- [us-docker.pkg.dev/agones-images/examples/unity-simple-server:0.3](https://us-docker.pkg.dev/agones-images/examples/unity-simple-server:0.3) +- [us-docker.pkg.dev/agones-images/examples/xonotic-example:2.1](https://us-docker.pkg.dev/agones-images/examples/xonotic-example:2.1) + +Helm chart available with this release: + +- + helm install agones agones/agones --version 1.45.0 + +> Make sure to add our stable helm repository using `helm repo add agones https://agones.dev/chart/stable` \ No newline at end of file diff --git a/site/content/en/docs/Guides/Client SDKs/cpp.md b/site/content/en/docs/Guides/Client SDKs/cpp.md index 26983f350e..2fe7dbe0cd 100644 --- a/site/content/en/docs/Guides/Client SDKs/cpp.md +++ b/site/content/en/docs/Guides/Client SDKs/cpp.md @@ -60,7 +60,7 @@ the supported gRPC version for you. Unfortunately this process was very brittle therefore this functionality has been removed, and a manual installation of gRPC is now required. {{< /alert >}} -This version of the Agones C++ SDK has been tested with gRPC 1.58.3. To install it from source +This version of the Agones C++ SDK has been tested with gRPC 1.65.0. To install it from source [follow the instructions](https://grpc.io/docs/languages/cpp/quickstart/#build-and-install-grpc-and-protocol-buffers). It may also be available from your system's package manager, but that may not align with the supported gRPC version, so diff --git a/site/content/en/docs/Guides/access-api.md b/site/content/en/docs/Guides/access-api.md index 1c3843ec02..272cf865ca 100644 --- a/site/content/en/docs/Guides/access-api.md +++ b/site/content/en/docs/Guides/access-api.md @@ -10,7 +10,7 @@ description: > --- Installing Agones creates several [Custom Resource Definitions (CRD)](https://kubernetes.io/docs/concepts/api-extension/custom-resources), -which can be accessed and manipulated through the Kubernetes API. +which can be accessed and manipulated through the Kubernetes API. The detailed list of Agones CRDs with their parameters could be found here - [Agones CRD API Reference](../../reference/agones_crd_api_reference/). @@ -402,7 +402,19 @@ curl http://localhost:8001/apis/agones.dev/v1/namespaces/default/gameservers ### Allocate a gameserver from a fleet named 'simple-game-server', with GameServerAllocation ```bash -curl -d '{"apiVersion":"allocation.agones.dev/v1","kind":"GameServerAllocation","spec":{"required":{"matchLabels":{"agones.dev/fleet":"simple-game-server"}}}}' -H "Content-Type: application/json" -X POST http://localhost:8001/apis/allocation.agones.dev/v1/namespaces/default/gameserverallocations +curl -d '{ + "apiVersion": "allocation.agones.dev/v1", + "kind": "GameServerAllocation", + "spec": { + "selectors": [ + { + "matchLabels": { + "agones.dev/fleet": "simple-game-server" + } + } + ] + } +}' -H "Content-Type: application/json" -X POST http://localhost:8001/apis/allocation.agones.dev/v1/namespaces/default/gameserverallocations ``` ``` { diff --git a/site/content/en/docs/Installation/Creating Cluster/gke.md b/site/content/en/docs/Installation/Creating Cluster/gke.md index 52173441c3..e5c122a0bd 100644 --- a/site/content/en/docs/Installation/Creating Cluster/gke.md +++ b/site/content/en/docs/Installation/Creating Cluster/gke.md @@ -91,6 +91,9 @@ Agones `GameServer` and `Fleet` manifests that work on Standard are compatible on Autopilot with some constraints, described in the following section. We recommend running GKE Autopilot clusters, if you meet the constraints. +If you choose GKE Autopilot mode, then you should skip the following sections on +`NodePool` configuration. GKE Autopilot handles this for you. + You can't convert existing Standard clusters to Autopilot; create new Autopilot clusters instead. @@ -124,6 +127,7 @@ whether these constraints impact your workloads: * **[Scheduling strategy]({{}}):** `Packed` is supported, which is the Agones default. `Distributed` is not supported. +* **Node pools:** Autopilot manages nodes for you. If you require node pools with different configurations, use GKE Standard. * **[Host port policy]({{}}):** `Dynamic` is supported, which is the Agones default. `Static` and `Passthrough` are not supported. * **[Port range]({{}}):** `default` is supported, which is the Agones default. @@ -237,7 +241,7 @@ Flag explanations: Create a [dedicated node pool](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools) for the Agones resources to be installed in. If you skip this step, the Agones controllers will share the default node pool with your game servers, which is fine for experimentation but not -recommended for a production deployment. +recommended for a production deployment. You must also skip this step if you are using GKE Autopilot. ```bash gcloud container node-pools create agones-system \ @@ -264,7 +268,8 @@ Flag explanations: #### (Optional) Creating a metrics node pool Create a node pool for [Metrics]({{< relref "../../Guides/metrics.md" >}}) if you want to monitor the - Agones system using Prometheus with Grafana or Cloud Logging and Monitoring. + Agones system using Prometheus with Grafana or Cloud Logging and Monitoring. You must skip this step +if you are using GKE Autopilot. ```bash gcloud container node-pools create agones-metrics \ @@ -292,7 +297,7 @@ Flag explanations: If you run game servers on Windows, you need to create a dedicated node pool for those servers. Windows Server 2019 (`WINDOWS_LTSC_CONTAINERD`) is the recommended image for Windows -game servers. +game servers. Note that GKE Autopilot does not support Windows nodes. {{< alert title="Warning" color="warning">}} Running `GameServers` on Windows nodes is currently Alpha. Feel free to file feedback diff --git a/site/content/en/docs/Installation/Creating Cluster/oke.md b/site/content/en/docs/Installation/Creating Cluster/oke.md new file mode 100644 index 0000000000..7981cc67dd --- /dev/null +++ b/site/content/en/docs/Installation/Creating Cluster/oke.md @@ -0,0 +1,41 @@ +--- +title: "OCI Kubernetes Engine" +linkTitle: "Oracle Cloud" +weight: 40 +description: > + Follow these steps to create an [OCI Kubernetes Engine (OKE)](https://www.oracle.com/cloud/cloud-native/kubernetes-engine/) + cluster for your Agones install. +--- + +Create your OKE Cluster using the [Getting Started Guide](https://docs.oracle.com/en-us/iaas/Content/ContEng/home.htm). + +{{< alert title="Note" color="info">}} +To create a cluster, you must either belong to the tenancy's Administrators group, or belong to a group to which a policy grants the CLUSTER_MANAGE permission. See Policy Configuration for Cluster Creation and Deployment. +{{< /alert >}} + +Possible steps to create OKE cluster through [OCI web console](https://cloud.oracle.com/) are the following: + +1. Open the navigation menu and click **Developer Services**. Under **Containers & Artifacts**, click **Kubernetes Clusters (OKE)**. +2. Select the compartment in which you want to create the cluster. +3. On the **Clusters** page, click **Create cluster**. +4. Select one of the following workflows to create the cluster: + - **Quick Create**: Select this workflow when you only want to specify those properties that are absolutely essential for cluster creation. When you select this option, Kubernetes Engine uses default values for many cluster properties, and creates new network resources as required. + - **Custom Create**: Select this workflow when you want to be able to specify all of the cluster's properties, use existing network resources, and select advanced options. +5. Click **Submit**. +6. Complete the pages of the workflow you selected. For more information, see: + - [Using the Console to create a Cluster with Default Settings in the 'Quick Create' workflow](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingclusterusingoke_topic-Using_the_Console_to_create_a_Quick_Cluster_with_Default_Settings.htm#create-quick-cluster) + - [Using the Console to create a Cluster with Explicitly Defined Settings in the 'Custom Create' workflow](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingclusterusingoke_topic-Using_the_Console_to_create_a_Custom_Cluster_with_Explicitly_Defined_Settings.htm#create-custom-cluster) + +## Allowing UDP Traffic + +For Agones to work correctly, we need to allow UDP traffic to pass through to our OKE cluster worker nodes. To achieve this, we must update the workers' nodepool SG (Security Group) with the proper rule. A simple way to do that is: + +* Log in to the OCI Console +* Go to the Virtual Cloud Network Details Dashboard and select **Network Security Groups** +* Find the Security Group for the workers nodepool, which will be named something like `workers-` +* Select **Add Rules** +* **Edit Rules** to add a new **Custom UDP Rule** with a 7000-8000 port range and an appropriate **Source** CIDR range (`0.0.0.0/0` allows all traffic) + +## Next Steps + +* Continue to [Install Agones]({{< relref "../Install Agones/_index.md" >}}). diff --git a/site/content/en/docs/Installation/Install Agones/helm.md b/site/content/en/docs/Installation/Install Agones/helm.md index 497d7a382b..a0223e0559 100644 --- a/site/content/en/docs/Installation/Install Agones/helm.md +++ b/site/content/en/docs/Installation/Install Agones/helm.md @@ -150,6 +150,8 @@ The following tables lists the configurable parameters of the Agones chart and t ### Agones Controller +{{% feature expiryVersion="1.46.0" %}} + | Parameter | Description | Default | |----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------| | `agones.controller.replicas` | The number of replicas to run in the `agones-controller` deployment. | `2` | @@ -190,7 +192,49 @@ The following tables lists the configurable parameters of the Agones chart and t | `agones.controller.maxGameServerDeletionsPerBatch` | Maximum number of GameServer deletion calls per batch | `64` | | `agones.controller.maxPodPendingCount` | Maximum number of pending pods per game server set | `5000` | - +{{% /feature %}} +{{% feature publishVersion="1.46.0" %}} +| Parameter | Description | Default | +|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------| +| `agones.controller.replicas` | The number of replicas to run in the `agones-controller` deployment. | `2` | +| `agones.controller.pdb.minAvailable` | Description of the number of pods from that set that must still be available after the eviction, even in the absence of the evicted pod. Can be either an absolute number or a percentage. Mutually Exclusive with `maxUnavailable` | `1` | +| `agones.controller.pdb.maxUnavailable` | Description of the number of pods from that set that can be unavailable after the eviction. It can be either an absolute number or a percentage Mutually Exclusive with `minAvailable` | \`\` | +| `agones.controller.http.port` | Port to use for liveness probe service and metrics | `8080` | +| `agones.controller.healthCheck.initialDelaySeconds` | Initial delay before performing the first probe (in seconds) | `3` | +| `agones.controller.healthCheck.periodSeconds` | Seconds between every liveness probe (in seconds) | `3` | +| `agones.controller.healthCheck.failureThreshold` | Number of times before giving up (in seconds) | `3` | +| `agones.controller.healthCheck.timeoutSeconds` | Number of seconds after which the probe times out (in seconds) | `1` | +| `agones.controller.resources` | Controller [resource requests/limit][resources] | `{}` | +| `agones.controller.generateTLS` | Set to true to generate TLS certificates or false to provide your own certificates | `true` | +| `agones.controller.tlsCert` | Custom TLS certificate provided as a string | \`\` | +| `agones.controller.tlsKey` | Custom TLS private key provided as a string | \`\` | +| `agones.controller.nodeSelector` | Controller [node labels][nodeSelector] for pod assignment | `{}` | +| `agones.controller.tolerations` | Controller [toleration][toleration] labels for pod assignment | `[]` | +| `agones.controller.affinity` | Controller [affinity][affinity] settings for pod assignment | `{}` | +| `agones.controller.labels` | [Labels][labels] added to the Agones controller pods | `{}` | +| `agones.controller.annotations` | [Annotations][annotations] added to the Agones controller pods | `{}` | +| `agones.controller.numWorkers` | Number of workers to spin per resource type | `100` | +| `agones.controller.apiServerQPS` | Maximum sustained queries per second that controller should be making against API Server | `400` | +| `agones.controller.apiServerQPSBurst` | Maximum burst queries per second that controller should be making against API Server | `500` | +| `agones.controller.logLevel` | Agones Controller Log level. Log only entries with that severity and above | `info` | +| `agones.controller.persistentLogs` | Store Agones controller logs in a temporary volume attached to a container for debugging | `true` | +| `agones.controller.persistentLogsSizeLimitMB` | Maximum total size of all Agones container logs in MB | `10000` | +| `agones.controller.disableSecret` | **Deprecated**. Use `agones.extensions.disableSecret` instead. Disables the creation of any allocator secrets. If true, you MUST provide the `{agones.releaseName}-cert` secrets before installation. | `false` | +| `agones.controller.customCertSecretPath` | Remap cert-manager path to server.crt and server.key | `{}` | +| `agones.controller.allocationApiService.annotations` | **Deprecated**. Use `agones.extensions.allocationApiService.annotations` instead. [Annotations][annotations] added to the Agones apiregistration | `{}` | +| `agones.controller.allocationApiService.disableCaBundle` | **Deprecated**. Use `agones.extensions.allocationApiService.disableCaBundle` instead. Disable ca-bundle so it can be injected by cert-manager. | `false` | +| `agones.controller.validatingWebhook.annotations` | **Deprecated**. Use `agones.extensions.validatingWebhook.annotations` instead. [Annotations][annotations] added to the Agones validating webhook | `{}` | +| `agones.controller.validatingWebhook.disableCaBundle` | **Deprecated**. Use `agones.extensions.validatingWebhook.disableCaBundle` instead. Disable ca-bundle so it can be injected by cert-manager | `false` | +| `agones.controller.mutatingWebhook.annotations` | **Deprecated**. Use `agones.extensions.mutatingWebhook.annotations` instead. [Annotations][annotations] added to the Agones mutating webhook | `{}` | +| `agones.controller.mutatingWebhook.disableCaBundle` | **Deprecated**. Use `agones.extensions.mutatingWebhook.disableCaBundle` instead. Disable ca-bundle so it can be injected by cert-manager | `false` | +| `agones.controller.allocationBatchWaitTime` | Wait time between each allocation batch when performing allocations in controller mode | `500ms` | +| `agones.controller.topologySpreadConstraints` | Ensures better resource utilization and high availability by evenly distributing Pods in the agones-system namespace | `{}` | +| `agones.controller.maxCreationParallelism` | Maximum number of parallelizing creation calls in GSS controller | `16` | +| `agones.controller.maxGameServerCreationsPerBatch` | Maximum number of GameServer creation calls per batch | `64` | +| `agones.controller.maxDeletionParallelism` | Maximum number of parallelizing deletion calls in GSS | `64` | +| `agones.controller.maxGameServerDeletionsPerBatch` | Maximum number of GameServer deletion calls per batch | `64` | +| `agones.controller.maxPodPendingCount` | Maximum number of pending pods per game server set | `5000` | +{{% /feature %}} ### Ping Service @@ -232,6 +276,7 @@ The following tables lists the configurable parameters of the Agones chart and t ### Allocator Service +{{% feature expiryVersion="1.46.0" %}} | Parameter | Description | Default | |----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------| | `agones.allocator.apiServerQPS` | Maximum sustained queries per second that an allocator should be making against API Server | `400` | @@ -288,9 +333,109 @@ The following tables lists the configurable parameters of the Agones chart and t | `agones.allocator.pdb.maxUnavailable` | Description of the number of pods from that set that can be unavailable after the eviction. It can be either an absolute number or a percentage. Mutually Exclusive with `minAvailable` | \`\` | | `agones.allocator.topologySpreadConstraints` | Ensures better resource utilization and high availability by evenly distributing Pods in the agones-system namespace | `{}` | +{{% /feature %}} +{{% feature publishVersion="1.46.0" %}} +| Parameter | Description | Default | +| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | +| `agones.allocator.apiServerQPS` | Maximum sustained queries per second that an allocator should be making against API Server | `400` | +| `agones.allocator.apiServerQPSBurst` | Maximum burst queries per second that an allocator should be making against API Server | `500` | +| `agones.allocator.remoteAllocationTimeout` | Remote allocation call timeout. | `10s` | +| `agones.allocator.totalRemoteAllocationTimeout` | Total remote allocation timeout including retries. | `30s` | +| `agones.allocator.logLevel` | Agones Allocator Log level. Log only entries with that severity and above | `info` | +| `agones.allocator.install` | Whether to install the [allocator service][allocator] | `true` | +| `agones.allocator.replicas` | The number of replicas to run in the deployment | `3` | +| `agones.allocator.service.name` | Service name for the allocator | `agones-allocator` | +| `agones.allocator.service.serviceType` | The [Service Type][service] of the HTTP Service | `LoadBalancer` | +| `agones.allocator.service.clusterIP` | The [Cluster IP][clusterIP] of the Agones allocator. If you want [Headless Service][headless-service] for Agones Allocator, you can set `None` to clusterIP. | \`\` | +| `agones.allocator.service.loadBalancerIP` | The [Load Balancer IP][loadBalancer] of the Agones allocator load balancer. Only works if the Kubernetes provider supports this option. | \`\` | +| `agones.allocator.service.loadBalancerSourceRanges` | The [Load Balancer SourceRanges][loadBalancer] of the Agones allocator load balancer. Only works if the Kubernetes provider supports this option. | `[]` | +| `agones.allocator.service.annotations` | [Annotations][annotations] added to the Agones allocator service | `{}` | +| `agones.allocator.service.http.enabled` | If true the [allocator service][allocator] will respond to [REST requests][rest-requests] | `true` | +| `agones.allocator.service.http.appProtocol` | The `appProtocol` to set on the Service for the http allocation port. If left blank, no value is set. | `` | +| `agones.allocator.service.http.port` | The port that is exposed externally by the [allocator service][allocator] for [REST requests][rest-requests] | `443` | +| `agones.allocator.service.http.portName` | The name of exposed port | `http` | +| `agones.allocator.service.http.targetPort` | The port that is used by the allocator pod to listen for [REST requests][rest-requests]. Note that the allocator server cannot bind to low numbered ports. | `8443` | +| `agones.allocator.service.http.nodePort` | If the ServiceType is set to "NodePort", this is the NodePort that the allocator http service is exposed on. | `30000-32767` | +| `agones.allocator.service.http.unallocatedStatusCode` | HTTP status code to return when no GameServer is available for allocation. This setting allows for custom responses when a game server allocation fails, offering flexibility in handling these situations. | `429` | +| `agones.allocator.service.grpc.enabled` | If true the [allocator service][allocator] will respond to [gRPC requests][grpc-requests] | `true` | +| `agones.allocator.service.grpc.port` | The port that is exposed externally by the [allocator service][allocator] for [gRPC requests][grpc-requests] | `443` | +| `agones.allocator.service.grpc.portName` | The name of exposed port | `` | +| `agones.allocator.service.grpc.appProtocol` | The `appProtocol` to set on the Service for the gRPC allocation port. If left blank, no value is set. | `` | +| `agones.allocator.service.grpc.nodePort` | If the ServiceType is set to "NodePort", this is the NodePort that the allocator gRPC service is exposed on. | `30000-32767` | +| `agones.allocator.service.grpc.targetPort` | The port that is used by the allocator pod to listen for [gRPC requests][grpc-requests]. Note that the allocator server cannot bind to low numbered ports. | `8443` | +| `agones.allocator.generateClientTLS` | Set to true to generate client TLS certificates or false to provide certificates in `certs/allocator/allocator-client.default/*` | `true` | +| `agones.allocator.generateTLS` | Set to true to generate TLS certificates or false to provide your own certificates | `true` | +| `agones.allocator.disableMTLS` | Turns off client cert authentication for incoming connections to the allocator. | `false` | +| `agones.allocator.disableTLS` | Turns off TLS security for incoming connections to the allocator. | `false` | +| `agones.allocator.disableSecretCreation` | Disables the creation of any allocator secrets. If true, you MUST provide the `allocator-tls`, `allocator-tls-ca`, and `allocator-client-ca` secrets before installation. | `false` | +| `agones.allocator.tlsCert` | Custom TLS certificate provided as a string | \`\` | +| `agones.allocator.tlsKey` | Custom TLS private key provided as a string | \`\` | +| `agones.allocator.clientCAs` | A map of secret key names to allowed client CA certificates provided as strings | `{}` | +| `agones.allocator.tolerations` | Allocator [toleration][toleration] labels for pod assignment | `[]` | +| `agones.allocator.affinity` | Allocator [affinity][affinity] settings for pod assignment | `{}` | +| `agones.allocator.annotations` | [Annotations][annotations] added to the Agones allocator pods | `{}` | +| `agones.allocator.resources` | Allocator pods [resource requests/limit][resources] | `{}` | +| `agones.allocator.labels` | [Labels][labels] Added to the Agones Allocator pods | `{}` | +| `agones.allocator.readiness.initialDelaySeconds` | Initial delay before performing the first probe (in seconds) | `3` | +| `agones.allocator.readiness.periodSeconds` | Seconds between every liveness probe (in seconds) | `3` | +| `agones.allocator.readiness.failureThreshold` | Number of times before giving up (in seconds) | `3` | +| `agones.allocator.nodeSelector` | Allocator [node labels][nodeSelector] for pod assignment | `{}` | +| `agones.allocator.serviceMetrics.name` | Second Service name for the allocator | `agones-allocator-metrics-service` | +| `agones.allocator.serviceMetrics.annotations` | [Annotations][annotations] added to the Agones allocator second Service | `{}` | +| `agones.allocator.serviceMetrics.http.port` | The port that is exposed within cluster by the [allocator service][allocator] for http requests | `8080` | +| `agones.allocator.serviceMetrics.http.portName` | The name of exposed port | `http` | +| `agones.allocator.allocationBatchWaitTime` | Wait time between each allocation batch when performing allocations in allocator mode | `500ms` | +| `agones.allocator.updateStrategy` | The [strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) to apply to the ping deployment | `{}` | +| `agones.allocator.pdb.enabled` | Set to `true` to enable the creation of a [PodDisruptionBudget](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) for the allocator deployment | `false` | +| `agones.allocator.pdb.minAvailable` | Description of the number of pods from that set that must still be available after the eviction, even in the absence of the evicted pod. Can be either an absolute number or a percentage. Mutually Exclusive with `maxUnavailable` | `1` | +| `agones.allocator.pdb.maxUnavailable` | Description of the number of pods from that set that can be unavailable after the eviction. It can be either an absolute number or a percentage. Mutually Exclusive with `minAvailable` | \`\` | +| `agones.allocator.topologySpreadConstraints` | Ensures better resource utilization and high availability by evenly distributing Pods in the agones-system namespace | `{}` | +| `agones.allocator.externalTrafficPolicy` | The `externalTrafficPolicy` for the Agones allocator service | `Cluster` | + +{{% /feature %}} ### Extensions +{{% feature expiryVersion="1.46.0" %}} +| Parameter | Description | Default | +|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------| +|`agones.extensions.hostNetwork` | Determines if the Agones extensions should operate in hostNetwork mode. If running in hostNetwork mode, you should change `agones.extensions.http.port` and `agones.extensions.webhooks.port` to an available port. | `false` | +| `agones.extensions.http.port` | Port to use for liveness probe service and metrics | `8080` | +|`agones.extensions.webhooks.port` | Port to use for webhook service | `8081` | +| `agones.extensions.healthCheck.initialDelaySeconds` | Initial delay before performing the first probe (in seconds) | `3` | +| `agones.extensions.healthCheck.periodSeconds` | Seconds between every liveness probe (in seconds) | `3` | +| `agones.extensions.healthCheck.failureThreshold` | Number of times before giving up (in seconds) | `3` | +| `agones.extensions.healthCheck.timeoutSeconds` | Number of seconds after which the probe times out (in seconds) | `1` | +| `agones.extensions.resources` | Extensions [resource requests/limit][resources] | `{}` | +| `agones.extensions.generateTLS` | Set to true to generate TLS certificates or false to provide your own certificates | `true` | +| `agones.extensions.tlsCert` | Custom TLS certificate provided as a string | \`\` | +| `agones.extensions.tlsKey` | Custom TLS private key provided as a string | \`\` | +| `agones.extensions.nodeSelector` | Extensions [node labels][nodeSelector] for pod assignment | `{}` | +| `agones.extensions.tolerations` | Extensions [toleration][toleration] labels for pod assignment | `[]` | +| `agones.extensions.affinity` | Extensions [affinity][affinity] settings for pod assignment | `{}` | +| `agones.extensions.annotations` | [Annotations][annotations] added to the Agones extensions pods | `{}` | +| `agones.extensions.numWorkers` | Number of workers to spin per resource type | `100` | +| `agones.extensions.apiServerQPS` | Maximum sustained queries per second that extensions should be making against API Server | `400` | +| `agones.extensions.apiServerQPSBurst` | Maximum burst queries per second that extensions should be making against API Server | `500` | +| `agones.extensions.logLevel` | Agones Extensions Log level. Log only entries with that severity and above | `info` | +| `agones.extensions.persistentLogs` | Store Agones extensions logs in a temporary volume attached to a container for debugging | `true` | +| `agones.extensions.persistentLogsSizeLimitMB` | Maximum total size of all Agones container logs in MB | `10000` | +| `agones.extensions.disableSecret` | Disables the creation of any allocator secrets. You MUST provide the `{agones.releaseName}-cert` secrets before installation if this is set to `true`. | `false` | +| `agones.extensions.customCertSecretPath` | Remap cert-manager path to server.crt and server.key | `{}` | +| `agones.extensions.allocationApiService.annotations` | [Annotations][annotations] added to the Agones API registration. | `{}` | +| `agones.extensions.allocationApiService.disableCaBundle` | Disable ca-bundle so it can be injected by cert-manager. | `false` | +| `agones.extensions.validatingWebhook.annotations` | [Annotations][annotations] added to the Agones validating webhook. | `{}` | +| `agones.extensions.validatingWebhook.disableCaBundle` | Disable ca-bundle so it can be injected by cert-manager. | `false` | +| `agones.extensions.mutatingWebhook.annotations` | [Annotations][annotations] added to the Agones mutating webhook. | `{}` | +| `agones.extensions.mutatingWebhook.disableCaBundle` | Disable ca-bundle so it can be injected by cert-manager. | `false` | +| `agones.extensions.allocationBatchWaitTime` | Wait time between each allocation batch when performing allocations in controller mode | `500ms` | +| `agones.extensions.pdb.minAvailable` | Description of the number of pods from that set that must still be available after the eviction, even in the absence of the evicted pod. Can be either an absolute number or a percentage. Mutually Exclusive with maxUnavailable | `1` | +| `agones.extensions.pdb.maxUnavailable` | Description of the number of pods from that set that can be unavailable after the eviction. It can be either an absolute number or a percentage. Mutually Exclusive with `minAvailable` | \`\` | +| `agones.extensions.replicas` | The number of replicas to run in the deployment | `2` | +| `agones.extensions.topologySpreadConstraints` | Ensures better resource utilization and high availability by evenly distributing Pods in the agones-system namespace | `{}` | + +{{% /feature %}} +{{% feature publishVersion="1.46.0" %}} | Parameter | Description | Default | |----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------| |`agones.extensions.hostNetwork` | Determines if the Agones extensions should operate in hostNetwork mode. If running in hostNetwork mode, you should change `agones.extensions.http.port` and `agones.extensions.webhooks.port` to an available port. | `false` | @@ -307,6 +452,7 @@ The following tables lists the configurable parameters of the Agones chart and t | `agones.extensions.nodeSelector` | Extensions [node labels][nodeSelector] for pod assignment | `{}` | | `agones.extensions.tolerations` | Extensions [toleration][toleration] labels for pod assignment | `[]` | | `agones.extensions.affinity` | Extensions [affinity][affinity] settings for pod assignment | `{}` | +| `agones.extensions.labels` | [Labels][labels] added to the Agones extensions pods | `{}` | | `agones.extensions.annotations` | [Annotations][annotations] added to the Agones extensions pods | `{}` | | `agones.extensions.numWorkers` | Number of workers to spin per resource type | `100` | | `agones.extensions.apiServerQPS` | Maximum sustained queries per second that extensions should be making against API Server | `400` | @@ -328,6 +474,9 @@ The following tables lists the configurable parameters of the Agones chart and t | `agones.extensions.replicas` | The number of replicas to run in the deployment | `2` | | `agones.extensions.topologySpreadConstraints` | Ensures better resource utilization and high availability by evenly distributing Pods in the agones-system namespace | `{}` | +{{% /feature %}} + + ### GameServers | Parameter | Description | Default | diff --git a/site/content/en/docs/Installation/Terraform/oke.md b/site/content/en/docs/Installation/Terraform/oke.md new file mode 100644 index 0000000000..e55c162880 --- /dev/null +++ b/site/content/en/docs/Installation/Terraform/oke.md @@ -0,0 +1,67 @@ +--- +title: "Installing Agones on OCI Kubernetes Engine using Terraform" +linkTitle: "OCI" +weight: 30 +publishDate: 2024-10-21 +description: > + You can use Terraform to provision an OKE cluster and install Agones on it. +--- + +## Installation + +You can use Terraform to provision your OKE (Oracle Kubernetes Engine) cluster and install Agones on it using the Helm Terraform provider. + +An example of the OKE submodule script files can be found here: + {{< ghlink href="examples/terraform-submodules/oke/" >}}Terraform configuration with Agones submodule{{< /ghlink >}} + +Copy these files into a separate folder. + +Configure your OCI CLI tool [CLI configure](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm): +```bash +oci setup config +``` + +Initialise your terraform: +```bash +terraform init +``` + +### Creating Cluster + +By editing `terraform.auto.tfvars` you can change the parameters that you need to. For instance, the - `kubernetes_version` variable. + +Configurable parameters: + +- cluster_name - the name of the OKE cluster (default is "agones-cluster") +- cluster_type - the OKE cluster type, basic or enhanced +- agones_version - the version of agones to install (an empty string, which is the default, is the latest version from the [Helm repository](https://agones.dev/chart/stable)) +- region - the location of the cluster (default is "us-ashburn-1") +- home_region - the tenancy's home region. Required to perform identity operations +- tenancy_id - the tenancy id of the OCI Cloud Account in which to create the resources +- user_id - the id of the user that terraform will use to create the OCI resources +- api_fingerprint - fingerprint of the API private key to user with OCI API +- api_private_key_path - the path to the OCI API private key +- compartment_id - the compartment id where resources will be created +- ssh_private_key_path - a path on the local filesystem to the SSH private key +- ssh_public_key_path - a path on the local filesystem to the SSH public key +- node_count - count of game server nodes for the default node pool (default is "3") +- log_level - possible values: Fatal, Error, Warn, Info, Debug (default is "info") +- feature_gates - a list of alpha and beta version features to enable. For example, "PlayerTracking=true&ContainerPortAllocation=true" + +Now you can create an OKE cluster and deploy Agones on OKE: +```bash +terraform apply [-var agones_version="{{< release-version >}}"] +``` + +Check that you are authenticated against the recently created Kubernetes cluster: +```bash +kubectl get nodes +``` + +### Uninstall the Agones and delete OKE cluster + +Run the following commands to delete all Terraform provisioned resources: +```bash +terraform destroy -target module.helm_agones.helm_release.agones -auto-approve && sleep 60 +terraform destroy +``` diff --git a/site/content/en/docs/Installation/_index.md b/site/content/en/docs/Installation/_index.md index fd89a4a9d6..343448de86 100644 --- a/site/content/en/docs/Installation/_index.md +++ b/site/content/en/docs/Installation/_index.md @@ -47,7 +47,8 @@ The following table lists recent Agones versions and their corresponding require | Agones version | Kubernetes version(s) | | -------------- | ------------------ | -| 1.44 | {{% k8s-version %}} | +| 1.45 | {{% k8s-version %}} | +| 1.44 | 1.28, 1.29, 1.30 | | 1.43 | 1.28, 1.29, 1.30 | | 1.42 | 1.27, 1.28, 1.29 | | 1.41 | 1.27, 1.28, 1.29 | @@ -69,7 +70,6 @@ The following table lists recent Agones versions and their corresponding require | 1.25 | 1.22 | | 1.24 | 1.22 | | 1.23 | 1.22 | -| 1.22 | 1.21 | ## Best Practices {#separation-of-agones-from-gameserver-nodes} diff --git a/site/content/en/docs/Installation/upgrading.md b/site/content/en/docs/Installation/upgrading.md index 5d03152808..a6b7b6c8d9 100644 --- a/site/content/en/docs/Installation/upgrading.md +++ b/site/content/en/docs/Installation/upgrading.md @@ -51,6 +51,75 @@ The following are steps to implement this: If you are upgrading a single cluster, we recommend creating a maintenance window, in which your game goes offline for the period of your upgrade, as there will be a short period in which Agones will be non-responsive during the upgrade. +{{% feature publishVersion="1.46.0" %}} +#### In-Place Agones Upgrades + +{{< alert color="warning" title="Warning" >}} +Work is ongoing for [In-Place Agones Upgrades](https://github.com/googleforgames/agones/issues/3766), +and the feature is currently in `Alpha`. Please continue to use the multi-cluster strategy for +production critical upgrades. Feedback on this `Alpha` feature is welcome and appreciated. +{{< /alert >}} + +For In-Place Agones Upgrades we highly recommend installing using Helm. Helm has a significant +advantage over `install.yaml` in that Helm automatically rolls back the upgrade if the agones-system +pods are not all successfully running within the designated `--timeout`. + +Regardless of the type of installation, there will be a brief ~20-30 second period during upgrade +when the controller service switches to the new controller endpoint that service is unable to connect +to the new controller. The SDK servers are still functional during this time, however the controller +will not be able to receive requests such as creating new game servers. Be sure to include retry +logic with back-off in your application logic to account for the error `Internal error occurred: +failed calling webhook "mutations.agones.dev": failed to call webhook: Post +"https://agones-controller-service.agones-system.svc:443/mutate?timeout=10s": no endpoints available +for service "agones-controller-service""` during this time. + +Note: By “controller derived configuration” we mean the parts of the Game Server’s final state that +are not part of the Game Server spec template that are instead passed to the Game Server through the +controller, such as the FEATURE_GATES or the Agones SDK Image. + +1. Run `helm upgrade my-release agones/agones --install --atomic --wait --timeout 10m --namespace=agones-system` +with all the appropriate arguments, such a `--version`, for your specific upgrade. Keep in mind that +`helm upgrade` overwrites all `--set agones.` arguments, so these must be set for each upgrade. See +[Helm Configuration]({{< relref "./Install Agones/helm.md" >}}) for a list of all available +configurable parameters. +2. Wait until the `helm upgrade` is complete. +3. To Upgrade the Fleet, or Not to Upgrade + 1. *Option 1 -- Recommended* Kick off rolling update of the existing Fleet. + 1. Make any change to the Fleet Spec Template in your fleet.yaml and reapply with + `kubectl apply -f fleet.yaml`. We recommend you also add or update a label on the fleet as in + the next step. + 2. If you have no changes to make to the existing `spec.template` in the fleet.yaml, then either + add a label or annotation to the `spec.template.metadata`. Reapply with `kubectl apply -f fleet.yaml`. + ```yaml + apiVersion: agones.dev/v1 + kind: Fleet + metadata: + name: example-fleet + spec: + replicas: 2 + template: + metadata: + # Adding a label will start a Fleet rollout with the most up to date Agones config. The label can be any `key: value` pair. + labels: + release: 1.42.0 + ``` + 3. Ready Game Servers will shut down (RollingUpdate or Recreate based on the Fleet replacement + strategy type) and be recreated on the new configuraiton. Allocated Game Servers will use the + existing configuration, and once they are set back to Ready, these Game Servers will shut down + and be replaced by Ready Game Servers at the new configuration. + 4. Wait until all the previous Ready GameServers have been replaced by the new configuration. + + 2. *Option 2 -- Not Recommended* Continue using Fleet at its existing configuration without kicking + off a Fleet upgrade. + 1. Ready Game Servers and Allocated Game servers that return to the Ready state retain the old + configuration. + 2. Any newly created Game Servers will be at the new configuration. + 3. This make it difficult to track when the entire fleet is at a new configuration, and + increases the likelihood of having multiple Game Server configurations on the same Fleet. +4. Run any other tests to ensure the Agones installation is working as expected. +5. Congratulations - you have now upgraded to a new version of Agones! 👍 +{{% /feature %}} + #### Installation with install.yaml If you installed [Agones with install.yaml]({{< relref "./Install Agones/yaml.md" >}}), then you will need to delete diff --git a/site/content/en/docs/Reference/agones_crd_api_reference.html b/site/content/en/docs/Reference/agones_crd_api_reference.html index 1881eeb01d..3afbe47c01 100644 --- a/site/content/en/docs/Reference/agones_crd_api_reference.html +++ b/site/content/en/docs/Reference/agones_crd_api_reference.html @@ -3,7 +3,7 @@ description="Detailed list of Agones Custom Resource Definitions available" +++ -{{% feature expiryVersion="1.43.0" %}} +{{% feature expiryVersion="1.45.0" %}}

Packages:

  • @@ -65,7 +65,7 @@

    Fleet metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -118,7 +118,7 @@

    Fleet strategy
    - + Kubernetes apps/v1.DeploymentStrategy @@ -227,7 +227,7 @@

    GameServer metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -316,7 +316,7 @@

    GameServer template
    - + Kubernetes core/v1.PodTemplateSpec @@ -436,7 +436,7 @@

    GameServerSet metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -886,7 +886,7 @@

    FleetSpec strategy
    - + Kubernetes apps/v1.DeploymentStrategy @@ -1152,7 +1152,7 @@

    GameServerPort protocol
    - + Kubernetes core/v1.Protocol @@ -1457,7 +1457,7 @@

    GameServerSpec template
    - + Kubernetes core/v1.PodTemplateSpec @@ -1592,7 +1592,7 @@

    GameServerStatus addresses
    - + []Kubernetes core/v1.NodeAddress @@ -1616,7 +1616,7 @@

    GameServerStatus reservedUntil
    - + Kubernetes meta/v1.Time @@ -1745,7 +1745,7 @@

    GameServerTemplateSpec metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -1834,7 +1834,7 @@

    GameServerTemplateSpec template
    - + Kubernetes core/v1.PodTemplateSpec @@ -2261,7 +2261,7 @@

    GameServerAllocation metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -2799,7 +2799,7 @@

    GameServerAllocatio addresses
    - + []Kubernetes core/v1.NodeAddress @@ -2928,7 +2928,7 @@

    GameServerSelector LabelSelector
    - + Kubernetes meta/v1.LabelSelector @@ -3179,7 +3179,7 @@

    MultiClusterSetting policySelector
    - + Kubernetes meta/v1.LabelSelector @@ -3271,7 +3271,7 @@

    FleetAutoscaler metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -3352,7 +3352,7 @@

    ActivePeriod

    (Appears on: -Schedule) +SchedulePolicy)

    ActivePeriod defines the time period that the policy is applied.

    @@ -3397,7 +3397,11 @@

    ActivePeriod -

    The representation limits the largest representable duration to approximately 290 years. +

    Duration is the length of time that the policy is applied. +If not set, the duration is indefinite. +A duration string is a possibly signed sequence of decimal numbers, +(e.g. “300ms”, “-1.5h” or “2h45m”). +The representation limits the largest representable duration to approximately 290 years. Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.

    @@ -3407,7 +3411,7 @@

    Between

    (Appears on: -Schedule) +SchedulePolicy)

    Between defines the time period that the policy is eligible to be applied.

    @@ -3424,7 +3428,9 @@

    Between start
    -string + +Kubernetes meta/v1.Time + @@ -3437,7 +3443,9 @@

    Between end
    -string + +Kubernetes meta/v1.Time + @@ -3537,20 +3545,7 @@

    ChainEntry -schedule
    - - -Schedule - - - - -

    Schedule defines when the policy is applied.

    - - - - -policy
    +FleetAutoscalerPolicy
    FleetAutoscalerPolicy @@ -3558,6 +3553,9 @@

    ChainEntry +

    +(Members of FleetAutoscalerPolicy are embedded into this type.) +

    Policy is the name of the policy to be applied. Required field.

    @@ -3837,7 +3835,8 @@

    FleetAutoscalerPolicy

    (Appears on: ChainEntry, -FleetAutoscalerSpec) +FleetAutoscalerSpec, +SchedulePolicy)

    FleetAutoscalerPolicy describes how to scale a fleet

    @@ -3925,6 +3924,22 @@

    FleetAutoscalerPolicy +schedule
    + + +SchedulePolicy + + + + +(Optional) +

    [Stage:Dev] +[FeatureFlag:ScheduledAutoscaler] +Schedule policy config params. Present only if FleetAutoscalerPolicyType = Schedule.

    + + + + chain
    @@ -4052,7 +4067,7 @@

    FleetAutoscalerStatus lastScaleTime
    -
    + Kubernetes meta/v1.Time @@ -4211,14 +4226,14 @@

    ListPolicy -

    Schedule +

    SchedulePolicy

    (Appears on: -ChainEntry) +FleetAutoscalerPolicy)

    -

    Schedule defines when the policy should be applied.

    +

    SchedulePolicy controls the desired behavior of the Schedule autoscaler policy.

    @@ -4254,6 +4269,19 @@

    Schedule

    ActivePeriod defines the time period that the policy is applied.

    +

    + + +
    +policy
    + + +FleetAutoscalerPolicy + + +
    +

    Policy is the name of the policy to be applied. Required field.

    +

    WebhookPolicy @@ -4310,7 +4338,7 @@

    WebhookPolicy service
    - + Kubernetes admissionregistration/v1.ServiceReference @@ -4380,7 +4408,7 @@

    GameServerAllocat metadata
    - + Kubernetes meta/v1.ObjectMeta @@ -4631,7 +4659,7 @@

    GameServerAll Generated with gen-crd-api-reference-docs.

    {{% /feature %}} -{{% feature publishVersion="1.43.0" %}} +{{% feature publishVersion="1.45.0" %}}

    Packages:

    • @@ -4693,7 +4721,7 @@

      Fleet metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -4746,7 +4774,7 @@

      Fleet strategy
      - + Kubernetes apps/v1.DeploymentStrategy @@ -4855,7 +4883,7 @@

      GameServer metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -4944,7 +4972,7 @@

      GameServer template
      - + Kubernetes core/v1.PodTemplateSpec @@ -5064,7 +5092,7 @@

      GameServerSet metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -5514,7 +5542,7 @@

      FleetSpec strategy
      - + Kubernetes apps/v1.DeploymentStrategy @@ -5780,7 +5808,7 @@

      GameServerPort protocol
      - + Kubernetes core/v1.Protocol @@ -6085,7 +6113,7 @@

      GameServerSpec template
      - + Kubernetes core/v1.PodTemplateSpec @@ -6220,7 +6248,7 @@

      GameServerStatus addresses
      - + []Kubernetes core/v1.NodeAddress @@ -6244,7 +6272,7 @@

      GameServerStatus reservedUntil
      - + Kubernetes meta/v1.Time @@ -6373,7 +6401,7 @@

      GameServerTemplateSpec metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -6462,7 +6490,7 @@

      GameServerTemplateSpec template
      - + Kubernetes core/v1.PodTemplateSpec @@ -6889,7 +6917,7 @@

      GameServerAllocation metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -7427,7 +7455,7 @@

      GameServerAllocatio addresses
      - + []Kubernetes core/v1.NodeAddress @@ -7556,7 +7584,7 @@

      GameServerSelector LabelSelector
      - + Kubernetes meta/v1.LabelSelector @@ -7807,7 +7835,7 @@

      MultiClusterSetting policySelector
      - + Kubernetes meta/v1.LabelSelector @@ -7899,7 +7927,7 @@

      FleetAutoscaler metadata
      - + Kubernetes meta/v1.ObjectMeta @@ -8056,7 +8084,7 @@

      Between start
      - + Kubernetes meta/v1.Time @@ -8071,7 +8099,7 @@

      Between end
      - + Kubernetes meta/v1.Time @@ -8695,7 +8723,7 @@

      FleetAutoscalerStatus lastScaleTime
      - + Kubernetes meta/v1.Time @@ -8966,7 +8994,7 @@

      WebhookPolicy service
      - + Kubernetes admissionregistration/v1.ServiceReference @@ -9036,7 +9064,7 @@

      GameServerAllocat metadata
      - + Kubernetes meta/v1.ObjectMeta diff --git a/site/content/en/docs/Reference/gameserverallocation.md b/site/content/en/docs/Reference/gameserverallocation.md index 41c21720ff..a9e9a7a676 100644 --- a/site/content/en/docs/Reference/gameserverallocation.md +++ b/site/content/en/docs/Reference/gameserverallocation.md @@ -59,7 +59,7 @@ spec: containsValue: "x6k8z" # only match GameServers who has this value in the list. Defaults to "", which is all. minAvailable: 1 # minimum available (current capacity - current count). Defaults to 0. maxAvailable: 10 # maximum available (current capacity - current count) Defaults to 0, which translates to max(int64) - # [Stage:Alpha] + # [Stage:Alpha] # [FeatureFlag:PlayerAllocationFilter] # Provides a filter on minimum and maximum values for player capacity when retrieving a GameServer # through Allocation. Defaults to no limits. @@ -111,6 +111,9 @@ spec: - x7un - 8inz capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000. + deleteValues: # removes values from a List's Values array. Any nonexistant values are ignored. + - alice + - bob {{< /tab >}} {{< tab header="required & preferred (deprecated)" lang="yaml" >}} apiVersion: "allocation.agones.dev/v1" @@ -170,7 +173,7 @@ spec: annotations: map: garden22 {{< /tab >}} -{{< /tabpane >}} +{{< /tabpane >}} The `spec` field is the actual `GameServerAllocation` specification, and it is composed as follows: diff --git a/site/content/en/docs/Third Party Content/libraries-tools.md b/site/content/en/docs/Third Party Content/libraries-tools.md index baa8ef9a26..294fbcddeb 100644 --- a/site/content/en/docs/Third Party Content/libraries-tools.md +++ b/site/content/en/docs/Third Party Content/libraries-tools.md @@ -35,3 +35,6 @@ Libraries or applications that implement messaging systems. ## Development Tools - [Minikube Agones Cluster](https://github.com/comerford/minikube-agones-cluster) - Automates the creation of a complete Kubernetes/Agones Cluster locally, using Xonotic as a sample gameserver. Intended to provide a local environment for developers which approximates a production Agones deployment. + +## Agones Guru on Gurubase +- You can [Ask Agones Guru](https://gurubase.io/g/agones) for help. It is an Agones-focused AI designed to answer your questions. diff --git a/site/layouts/partials/navbar.html b/site/layouts/partials/navbar.html index 956799c3d9..fb890b8260 100644 --- a/site/layouts/partials/navbar.html +++ b/site/layouts/partials/navbar.html @@ -27,6 +27,7 @@

    • {{ if (gt (len .Site.Home.Translations) 0) }} diff --git a/test/e2e/allocator_test.go b/test/e2e/allocator_test.go index 89071dd74f..26b954ac01 100644 --- a/test/e2e/allocator_test.go +++ b/test/e2e/allocator_test.go @@ -352,7 +352,8 @@ func TestAllocatorWithCountersAndLists(t *testing.T) { }, Lists: map[string]*pb.ListAction{ "rooms": { - AddValues: []string{"1"}, + AddValues: []string{"1"}, + DeleteValues: []string{"2"}, // This action is ignored. (Value does not exist.) }, }, } @@ -379,6 +380,7 @@ func TestAllocatorWithCountersAndLists(t *testing.T) { assert.Contains(t, response.GetLists(), "rooms") assert.Equal(t, int64(10), response.GetLists()["rooms"].Capacity.GetValue()) assert.EqualValues(t, request.Lists["rooms"].AddValues, response.GetLists()["rooms"].Values) + assert.NotEqualValues(t, request.Lists["rooms"].DeleteValues, response.GetLists()["rooms"].Values) return true, nil }) require.NoError(t, err) @@ -405,6 +407,7 @@ func TestRestAllocatorWithCountersAndLists(t *testing.T) { } f.Spec.Template.Spec.Lists = map[string]agonesv1.ListStatus{ "rooms": { + Values: []string{"one", "two", "three"}, Capacity: 10, }, } @@ -434,7 +437,8 @@ func TestRestAllocatorWithCountersAndLists(t *testing.T) { }, Lists: map[string]*pb.ListAction{ "rooms": { - AddValues: []string{"1"}, + AddValues: []string{"1"}, + DeleteValues: []string{"three", "one"}, }, }, } @@ -478,7 +482,9 @@ func TestRestAllocatorWithCountersAndLists(t *testing.T) { assert.Equal(t, int64(1), response.GetCounters()["players"].Count.GetValue()) assert.Contains(t, response.GetLists(), "rooms") assert.Equal(t, int64(10), response.GetLists()["rooms"].Capacity.GetValue()) - assert.EqualValues(t, request.Lists["rooms"].AddValues, response.GetLists()["rooms"].Values) + assert.Contains(t, response.GetLists()["rooms"].Values, request.Lists["rooms"].AddValues[0]) + assert.NotContains(t, response.GetLists()["rooms"].Values, request.Lists["rooms"].DeleteValues[0]) + assert.NotContains(t, response.GetLists()["rooms"].Values, request.Lists["rooms"].DeleteValues[1]) return true, nil }) require.NoError(t, err) diff --git a/test/e2e/fleet_test.go b/test/e2e/fleet_test.go index dc74d4014a..365ead45a3 100644 --- a/test/e2e/fleet_test.go +++ b/test/e2e/fleet_test.go @@ -1980,12 +1980,23 @@ func defaultFleet(namespace string) *agonesv1.Fleet { return fleetWithGameServerSpec(&gs.Spec, namespace) } +// defaultEmptyFleet returns a default fleet configuration with no replicas. +func defaultEmptyFleet(namespace string) *agonesv1.Fleet { + gs := framework.DefaultGameServer(namespace) + return fleetWithGameServerSpecAndReplicas(&gs.Spec, namespace, 0) +} + // fleetWithGameServerSpec returns a fleet with specified gameserver spec func fleetWithGameServerSpec(gsSpec *agonesv1.GameServerSpec, namespace string) *agonesv1.Fleet { + return fleetWithGameServerSpecAndReplicas(gsSpec, namespace, replicasCount) +} + +// fleetWithGameServerSpecAndReplicas returns a fleet with specified gameserver spec and specified replica count +func fleetWithGameServerSpecAndReplicas(gsSpec *agonesv1.GameServerSpec, namespace string, replicas int32) *agonesv1.Fleet { return &agonesv1.Fleet{ ObjectMeta: metav1.ObjectMeta{GenerateName: "simple-fleet-1.0", Namespace: namespace}, Spec: agonesv1.FleetSpec{ - Replicas: replicasCount, + Replicas: replicas, Template: agonesv1.GameServerTemplateSpec{ Spec: *gsSpec, }, diff --git a/test/e2e/fleetautoscaler_test.go b/test/e2e/fleetautoscaler_test.go index 5cdc2b1801..3733854e90 100644 --- a/test/e2e/fleetautoscaler_test.go +++ b/test/e2e/fleetautoscaler_test.go @@ -944,6 +944,88 @@ func TestCounterAutoscaler(t *testing.T) { } } +// nolint:dupl // Linter errors on lines are duplicate of TestListAutoscalerWithNoReplicas +func TestCounterAutoscalerWithNoReplicas(t *testing.T) { + if !runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { + t.SkipNow() + } + t.Parallel() + + ctx := context.Background() + client := framework.AgonesClient.AgonesV1() + log := e2e.TestLogger(t) + + flt := defaultEmptyFleet(framework.Namespace) + flt.Spec.Template.Spec.Counters = map[string]agonesv1.CounterStatus{ + "games": { + Capacity: 5, + }, + } + + flt, err := client.Fleets(framework.Namespace).Create(ctx, flt.DeepCopy(), metav1.CreateOptions{}) + require.NoError(t, err) + defer client.Fleets(framework.Namespace).Delete(ctx, flt.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(flt.Spec.Replicas)) + + fleetautoscalers := framework.AgonesClient.AutoscalingV1().FleetAutoscalers(framework.Namespace) + + counterFas := func(f func(fap *autoscalingv1.FleetAutoscalerPolicy)) *autoscalingv1.FleetAutoscaler { + fas := autoscalingv1.FleetAutoscaler{ + ObjectMeta: metav1.ObjectMeta{Name: flt.ObjectMeta.Name + "-counter-autoscaler", Namespace: framework.Namespace}, + Spec: autoscalingv1.FleetAutoscalerSpec{ + FleetName: flt.ObjectMeta.Name, + Policy: autoscalingv1.FleetAutoscalerPolicy{ + Type: autoscalingv1.CounterPolicyType, + }, + Sync: &autoscalingv1.FleetAutoscalerSync{ + Type: autoscalingv1.FixedIntervalSyncType, + FixedInterval: autoscalingv1.FixedIntervalSync{ + Seconds: 1, + }, + }, + }, + } + f(&fas.Spec.Policy) + return &fas + } + testCases := map[string]struct { + fas *autoscalingv1.FleetAutoscaler + wantFasErr bool + wantReplicas int32 + }{ + "Scale Up to MinCapacity": { + fas: counterFas(func(fap *autoscalingv1.FleetAutoscalerPolicy) { + fap.Counter = &autoscalingv1.CounterPolicy{ + Key: "games", + BufferSize: intstr.FromInt(3), + MinCapacity: 16, + MaxCapacity: 100, + } + }), + wantFasErr: false, + wantReplicas: 4, // Capacity:20 + }, + } + for name, testCase := range testCases { + t.Run(name, func(t *testing.T) { + + fas, err := fleetautoscalers.Create(ctx, testCase.fas, metav1.CreateOptions{}) + if testCase.wantFasErr { + assert.Error(t, err) + return + } + assert.NoError(t, err) + + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(testCase.wantReplicas)) + fleetautoscalers.Delete(ctx, fas.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck + + // Return to starting 0 replicas + framework.ScaleFleet(t, log, flt, 0) + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(0)) + }) + } +} + func TestCounterAutoscalerAllocated(t *testing.T) { if !runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { t.SkipNow() @@ -1209,6 +1291,88 @@ func TestListAutoscaler(t *testing.T) { } } +// nolint:dupl // Linter errors on lines are duplicate of TestCounterAutoscalerWithNoReplicas +func TestListAutoscalerWithNoReplicas(t *testing.T) { + if !runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { + t.SkipNow() + } + t.Parallel() + + ctx := context.Background() + client := framework.AgonesClient.AgonesV1() + log := e2e.TestLogger(t) + + flt := defaultEmptyFleet(framework.Namespace) + flt.Spec.Template.Spec.Lists = map[string]agonesv1.ListStatus{ + "games": { + Capacity: 5, + }, + } + + flt, err := client.Fleets(framework.Namespace).Create(ctx, flt.DeepCopy(), metav1.CreateOptions{}) + require.NoError(t, err) + defer client.Fleets(framework.Namespace).Delete(ctx, flt.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(flt.Spec.Replicas)) + + fleetautoscalers := framework.AgonesClient.AutoscalingV1().FleetAutoscalers(framework.Namespace) + + listFas := func(f func(fap *autoscalingv1.FleetAutoscalerPolicy)) *autoscalingv1.FleetAutoscaler { + fas := autoscalingv1.FleetAutoscaler{ + ObjectMeta: metav1.ObjectMeta{Name: flt.ObjectMeta.Name + "-list-autoscaler", Namespace: framework.Namespace}, + Spec: autoscalingv1.FleetAutoscalerSpec{ + FleetName: flt.ObjectMeta.Name, + Policy: autoscalingv1.FleetAutoscalerPolicy{ + Type: autoscalingv1.ListPolicyType, + }, + Sync: &autoscalingv1.FleetAutoscalerSync{ + Type: autoscalingv1.FixedIntervalSyncType, + FixedInterval: autoscalingv1.FixedIntervalSync{ + Seconds: 1, + }, + }, + }, + } + f(&fas.Spec.Policy) + return &fas + } + testCases := map[string]struct { + fas *autoscalingv1.FleetAutoscaler + wantFasErr bool + wantReplicas int32 + }{ + "Scale Up to MinCapacity": { + fas: listFas(func(fap *autoscalingv1.FleetAutoscalerPolicy) { + fap.List = &autoscalingv1.ListPolicy{ + Key: "games", + BufferSize: intstr.FromInt(3), + MinCapacity: 16, + MaxCapacity: 100, + } + }), + wantFasErr: false, + wantReplicas: 4, // Capacity:20 + }, + } + for name, testCase := range testCases { + t.Run(name, func(t *testing.T) { + + fas, err := fleetautoscalers.Create(ctx, testCase.fas, metav1.CreateOptions{}) + if testCase.wantFasErr { + assert.Error(t, err) + return + } + assert.NoError(t, err) + + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(testCase.wantReplicas)) + fleetautoscalers.Delete(ctx, fas.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck + + // Return to starting 0 replicas + framework.ScaleFleet(t, log, flt, 0) + framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(0)) + }) + } +} + func TestListAutoscalerAllocated(t *testing.T) { if !runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { t.SkipNow() @@ -1222,7 +1386,7 @@ func TestListAutoscalerAllocated(t *testing.T) { defaultFlt := defaultFleet(framework.Namespace) defaultFlt.Spec.Template.Spec.Lists = map[string]agonesv1.ListStatus{ "gamers": { - Values: []string{}, + Values: []string{"gamer5", "gamer6"}, Capacity: 6, // AggregateCapacity 18 }, } @@ -1277,7 +1441,7 @@ func TestListAutoscalerAllocated(t *testing.T) { defer client.Fleets(framework.Namespace).Delete(ctx, flt.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(flt.Spec.Replicas)) - // Adds 4 gamers to each allocated gameserver. + // Adds 4 gamers to each allocated gameserver, and removes 2 existing gamers. gsa := allocationv1.GameServerAllocation{ Spec: allocationv1.GameServerAllocationSpec{ Selectors: []allocationv1.GameServerSelector{ @@ -1286,7 +1450,8 @@ func TestListAutoscalerAllocated(t *testing.T) { }, Lists: map[string]allocationv1.ListAction{ "gamers": { - AddValues: []string{"gamer1", "gamer2", "gamer3", "gamer4"}, + AddValues: []string{"gamer1", "gamer2", "gamer3", "gamer4"}, + DeleteValues: []string{"gamer5", "gamer6"}, }}}} // Allocate game servers, as Buffer Percent scales up (or down) based on allocated aggregate capacity @@ -1457,9 +1622,8 @@ func TestScheduleAutoscaler(t *testing.T) { stable := framework.AgonesClient.AgonesV1() fleets := stable.Fleets(framework.Namespace) flt, err := fleets.Create(ctx, defaultFleet(framework.Namespace), metav1.CreateOptions{}) - if assert.NoError(t, err) { - defer fleets.Delete(context.Background(), flt.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck - } + require.NoError(t, err) + defer fleets.Delete(context.Background(), flt.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(flt.Spec.Replicas)) @@ -1469,7 +1633,7 @@ func TestScheduleAutoscaler(t *testing.T) { scheduleAutoscaler := defaultAutoscalerSchedule(t, flt) scheduleAutoscaler.Spec.Policy.Schedule.ActivePeriod.StartCron = nextCronMinute(time.Now()) fas, err := fleetautoscalers.Create(ctx, scheduleAutoscaler, metav1.CreateOptions{}) - assert.NoError(t, err) + require.NoError(t, err) framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(5)) fleetautoscalers.Delete(ctx, fas.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck @@ -1482,7 +1646,7 @@ func TestScheduleAutoscaler(t *testing.T) { scheduleAutoscaler = defaultAutoscalerSchedule(t, flt) scheduleAutoscaler.Spec.Policy.Schedule.ActivePeriod.StartCron = nextCronMinuteBetween(time.Now()) fas, err = fleetautoscalers.Create(ctx, scheduleAutoscaler, metav1.CreateOptions{}) - assert.NoError(t, err) + require.NoError(t, err) framework.AssertFleetCondition(t, flt, e2e.FleetReadyCount(5)) fleetautoscalers.Delete(ctx, fas.ObjectMeta.Name, metav1.DeleteOptions{}) // nolint:errcheck @@ -1678,8 +1842,13 @@ func nextCronMinute(currentTime time.Time) string { // nextCronMinuteBetween returns the minute between the very next minute // e.g. if the current time is 12:00, this method will return "1-2 * * * *" // meaning between 12:01 - 12:02 +// if the current minute if "59" since 59-0 is invalid, we'll return "0-1 * * * *" and wait for a bit longer on e2e tests. func nextCronMinuteBetween(currentTime time.Time) string { nextMinute := currentTime.Add(time.Minute).Minute() + if nextMinute == 59 { + return "0-1 * * * *" + } + secondMinute := currentTime.Add(2 * time.Minute).Minute() return fmt.Sprintf("%d-%d * * * *", nextMinute, secondMinute) } diff --git a/test/e2e/gameserverallocation_test.go b/test/e2e/gameserverallocation_test.go index 6fa162d529..9a09a3ce59 100644 --- a/test/e2e/gameserverallocation_test.go +++ b/test/e2e/gameserverallocation_test.go @@ -877,6 +877,10 @@ func TestListGameServerAllocationActions(t *testing.T) { Values: []string{"player0", "player1", "player2"}, Capacity: 8, } + lists["rooms"] = agonesv1.ListStatus{ + Values: []string{"room0", "room1", "room2"}, + Capacity: 20, + } flt := defaultFleet(framework.Namespace) flt.Spec.Template.Spec.Lists = lists @@ -893,6 +897,7 @@ func TestListGameServerAllocationActions(t *testing.T) { testCases := map[string]struct { gsa allocationv1.GameServerAllocation + listName string wantGsaErr bool wantCapacity *int64 wantValues []string @@ -907,6 +912,7 @@ func TestListGameServerAllocationActions(t *testing.T) { "players": { AddValues: []string{"player3", "player4", "player5"}, }}}}, + listName: "players", wantGsaErr: false, wantValues: []string{"player0", "player1", "player2", "player3", "player4", "player5"}, }, @@ -920,10 +926,25 @@ func TestListGameServerAllocationActions(t *testing.T) { "players": { Capacity: &one, }}}}, + listName: "players", wantGsaErr: false, wantValues: []string{"player0"}, wantCapacity: &one, }, + "delete List values": { + gsa: allocationv1.GameServerAllocation{ + Spec: allocationv1.GameServerAllocationSpec{ + Selectors: []allocationv1.GameServerSelector{ + {LabelSelector: fleetSelector}, + }, + Lists: map[string]allocationv1.ListAction{ + "rooms": { + DeleteValues: []string{"room1", "room0"}, + }}}}, + listName: "rooms", + wantGsaErr: false, + wantValues: []string{"room2"}, + }, } for name, testCase := range testCases { @@ -936,7 +957,7 @@ func TestListGameServerAllocationActions(t *testing.T) { } require.NoError(t, err) assert.Equal(t, string(allocated), string(gsa.Status.State)) - listStatus, ok := gsa.Status.Lists["players"] + listStatus, ok := gsa.Status.Lists[testCase.listName] assert.True(t, ok) if testCase.wantCapacity != nil { assert.Equal(t, *testCase.wantCapacity, listStatus.Capacity) @@ -948,7 +969,7 @@ func TestListGameServerAllocationActions(t *testing.T) { assert.Equal(t, allocated, gs1.Status.State) assert.NotNil(t, gs1.ObjectMeta.Annotations["agones.dev/last-allocated"]) - list, ok := gs1.Status.Lists["players"] + list, ok := gs1.Status.Lists[testCase.listName] assert.True(t, ok) if testCase.wantCapacity != nil { assert.Equal(t, *testCase.wantCapacity, list.Capacity) diff --git a/test/sdk/go/Dockerfile b/test/sdk/go/Dockerfile index fe0ca478cd..e0059fcdd8 100644 --- a/test/sdk/go/Dockerfile +++ b/test/sdk/go/Dockerfile @@ -21,7 +21,6 @@ COPY *.go ./ # Note: because this installs the most recently released version of Agones, this will need to be # built and pushed post-release. -# TODO: Add to post-release check list. RUN go mod init agones.dev/agones/test/sdk/go/sdk-client-test RUN go mod tidy RUN go mod download diff --git a/test/sdk/go/Makefile b/test/sdk/go/Makefile index 3c3e60551b..86ba5dba7b 100644 --- a/test/sdk/go/Makefile +++ b/test/sdk/go/Makefile @@ -29,7 +29,7 @@ project_path := $(dir $(mkfile_path)) root_path = $(realpath $(project_path)/) # Because go mod init in the Dockerfile installs the most recently released version of Agones, this # will need to be built and pushed post-release. During DEV it will be built at DEV - 1. -release_version = 1.43.0 +release_version = 1.45.0 server_tag := $(REGISTRY)/sdk-client-test:$(release_version) # _____ _ diff --git a/test/sdk/go/sdk-client-test.go b/test/sdk/go/sdk-client-test.go index 699c382f7f..6ed365d5ff 100644 --- a/test/sdk/go/sdk-client-test.go +++ b/test/sdk/go/sdk-client-test.go @@ -17,6 +17,7 @@ package main import ( "log" + "os" "strconv" "strings" "time" @@ -38,6 +39,24 @@ func main() { runtime.Must(runtime.FeaturesBindEnv()) runtime.Must(runtime.ParseFeaturesFromEnv()) + // Use to delays to prevent Game Servers from churning too quickly on a running cluster. + shutdownDelaySec := 0 + gracefulTerminationDelaySec := 0 + if sds := os.Getenv("SHUTDOWN_DELAY_SECONDS"); sds != "" { + sec, err := strconv.Atoi(sds) + if err != nil { + log.Fatalf("Could not parse SHUTDOWN_DELAY_SECONDS: %v", err) + } + shutdownDelaySec = sec + } + if gtds := os.Getenv("GRACEFUL_TERMINATION_DELAY_SECONDS"); gtds != "" { + sec, err := strconv.Atoi(gtds) + if err != nil { + log.Fatalf("Could not parse GRACEFUL_TERMINATION_DELAY_SECONDS: %v", err) + } + gracefulTerminationDelaySec = sec + } + log.SetFlags(log.Lshortfile) log.Println("Client is starting") log.Printf("Feature Flags: %s\n", runtime.EncodeFeatures()) @@ -105,13 +124,16 @@ func main() { testLists(sdk) } - // Delay before shutdown to prevent Game Servers from churning too quickly on a running cluster - time.Sleep(8 * time.Second) + log.Printf("Waiting %d seconds before shutting down game server", shutdownDelaySec) + time.Sleep(time.Duration(shutdownDelaySec) * time.Second) err = sdk.Shutdown() if err != nil { log.Fatalf("Could not shutdown GameServer: %s", err) } + + log.Printf("Waiting %d seconds before exiting", gracefulTerminationDelaySec) + time.Sleep(time.Duration(gracefulTerminationDelaySec) * time.Second) } func testPlayerTracking(sdk *goSdk.SDK) { diff --git a/test/upgrade/Dockerfile b/test/upgrade/Dockerfile index 52aa6a5e3f..722a4a153f 100644 --- a/test/upgrade/Dockerfile +++ b/test/upgrade/Dockerfile @@ -12,22 +12,23 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM gcr.io/cloud-builders/gcloud AS builder +FROM golang:1.22.6-alpine AS builder -RUN apt-get update && \ - apt-get install -y curl && \ - apt-get clean +# install curl +RUN apk update && \ + apk upgrade && \ + apk --no-cache add curl WORKDIR /usr/local # install kubectl -ENV KUBECTL_VER=1.29.7 +ENV KUBECTL_VER=1.30.4 RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/linux/amd64/kubectl && \ chmod go+rx ./kubectl && \ mv ./kubectl /usr/local/bin/kubectl # install Helm package manager -ENV HELM_VER=3.14.3 +ENV HELM_VER=3.16.3 ENV HELM_URL=https://get.helm.sh/helm-v${HELM_VER}-linux-amd64.tar.gz RUN curl -L ${HELM_URL} > /tmp/helm.tar.gz \ && tar -zxvf /tmp/helm.tar.gz -C /tmp \ @@ -35,27 +36,19 @@ RUN curl -L ${HELM_URL} > /tmp/helm.tar.gz \ && chmod go+rx /usr/local/bin/helm \ && rm /tmp/helm.tar.gz && rm -rf /tmp/linux-amd64 -# Build the Go image from source -FROM golang:1.22.6 AS build-stage - +# Copy and build the Go application WORKDIR /agones.dev - -COPY *.go ./ - -RUN go mod init agones.dev/agones/test/upgrade/testContainer -RUN go mod tidy -RUN go mod download - +COPY test/upgrade/main.go ./ +COPY test/upgrade/go.mod ./ +COPY test/upgrade/go.sum ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /upgrade-test -# Copy the above binary into a lean image -FROM gcr.io/distroless/static-debian12:nonroot AS build-release-stage - +# Copy the dev build Agones Helm chart WORKDIR / -COPY --from=build-stage /upgrade-test /upgrade-test -COPY --from=builder /usr/local /usr/local - -USER nonroot:nonroot +# Use a non-root user for security best practices +RUN adduser -D -g '' adduser +USER adduser +COPY --chown=adduser install/helm/agones /install/helm ENTRYPOINT ["/upgrade-test"] diff --git a/test/upgrade/Makefile b/test/upgrade/Makefile index 4b6bfe5a0a..e7c014412f 100644 --- a/test/upgrade/Makefile +++ b/test/upgrade/Makefile @@ -24,12 +24,11 @@ # REGISTRY ?= -mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) -project_path := $(dir $(mkfile_path)) -root_path = $(realpath $(project_path)/) -dev_version = 1.44.0-dev -server_tag := $(REGISTRY)/upgrade-test-controller:$(dev_version) - +base_version = 1.46.0 +# Version defaults to the short hash of the latest commit +VERSION ?= $(base_version)-dev-$(shell git rev-parse --short=7 HEAD) +server_tag := $(REGISTRY)/upgrade-test-controller:$(VERSION) +cwd:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) # _____ _ # |_ _|_ _ _ __ __ _ ___| |_ ___ # | |/ _` | '__/ _` |/ _ \ __/ __| @@ -37,9 +36,12 @@ server_tag := $(REGISTRY)/upgrade-test-controller:$(dev_version) # |_|\__,_|_| \__, |\___|\__|___/ # |___/ +# Using .ONESHELL allows us to `cd` to the parent directory agones. This gives the Dockerfile the +# context of the agones directory, which allows it to COPY files from any child directory. +.ONESHELL: # Build a docker image for the server, and tag it build: - cd $(root_path) && docker build -f $(project_path)Dockerfile --tag=$(server_tag) . + cd "$(cwd)/../.." && DOCKER_BUILDKIT=1 docker build -f $(cwd)/Dockerfile --tag=$(server_tag) . push: build docker push $(server_tag) diff --git a/test/upgrade/evictablePods.yaml b/test/upgrade/evictablePods.yaml new file mode 100644 index 0000000000..59a6765f4b --- /dev/null +++ b/test/upgrade/evictablePods.yaml @@ -0,0 +1,67 @@ +# Copyright 2024 Google LLC All Rights Reserved. +# +# 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. + +# Create evictable pods to prevent Autopilot clusters from completely scaling down. +# https://cloud.google.com/kubernetes-engine/docs/how-to/capacity-provisioning +--- +apiVersion: scheduling.k8s.io/v1 +kind: PriorityClass +metadata: + name: low-priority +value: -10 +preemptionPolicy: Never +globalDefault: false +description: "Low priority workloads" +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: evictable-pods-deployment +spec: + replicas: 200 + selector: + matchLabels: + app: evictable-pods + template: + metadata: + labels: + app: evictable-pods + # Label for use with packed game server pod affinity rules + agones.dev/role: gameserver + spec: + priorityClassName: low-priority + terminationGracePeriodSeconds: 0 + containers: + - name: ubuntu + image: ubuntu + imagePullPolicy: IfNotPresent + command: ["sleep"] + args: ["infinity"] + resources: + requests: + memory: 52Mi + cpu: 30m + limits: + memory: 52Mi + cpu: 30m + # Use same affinity as packed game server pods + affinity: + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + agones.dev/role: gameserver + topologyKey: kubernetes.io/hostname + weight: 100 diff --git a/test/upgrade/gameserverTemplate.yaml b/test/upgrade/gameserverTemplate.yaml index 407ed218aa..f93c6088bc 100644 --- a/test/upgrade/gameserverTemplate.yaml +++ b/test/upgrade/gameserverTemplate.yaml @@ -51,16 +51,23 @@ data: metadata: labels: agonesVersion: {{ .AgonesVersion }} + app: sdk-client-test spec: containers: - name: sdk-client-test image: "{{ .Registry }}:{{ .AgonesVersion }}" imagePullPolicy: Always + env: + - name: SHUTDOWN_DELAY_SECONDS + value: "10" + - name: GRACEFUL_TERMINATION_DELAY_SECONDS + value: "10" resources: requests: - memory: 64Mi + memory: 52Mi cpu: 20m limits: - memory: 64Mi + memory: 52Mi cpu: 20m serviceAccountName: agones-sa + restartPolicy: Never diff --git a/test/upgrade/go.mod b/test/upgrade/go.mod index f7615ef1da..c933172c94 100644 --- a/test/upgrade/go.mod +++ b/test/upgrade/go.mod @@ -1,10 +1,10 @@ module agones.dev/agones/test/upgrade/testContainer -go 1.22 - -toolchain go1.22.6 +go 1.22.6 require ( + agones.dev/agones v1.45.0 + k8s.io/api v0.31.0 k8s.io/apimachinery v0.31.0 k8s.io/client-go v0.31.0 ) @@ -12,39 +12,61 @@ require ( require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // indirect - github.com/go-openapi/jsonpointer v0.19.6 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect - github.com/go-openapi/swag v0.22.4 // indirect + github.com/go-openapi/spec v0.19.5 // indirect + github.com/go-openapi/swag v0.23.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/gnostic-models v0.6.8 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/imdario/mergo v0.3.6 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect + github.com/magiconair/properties v1.8.1 // indirect github.com/mailru/easyjson v0.7.7 // indirect + github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect + github.com/mitchellh/mapstructure v1.4.1 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/onsi/gomega v1.33.1 // indirect + github.com/pelletier/go-toml v1.2.0 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/robfig/cron/v3 v3.0.1 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/spf13/afero v1.9.2 // indirect + github.com/spf13/cast v1.3.0 // indirect + github.com/spf13/jwalterweatherman v1.0.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.7.0 // indirect + github.com/subosito/gotenv v1.2.0 // indirect github.com/x448/float16 v0.8.4 // indirect - golang.org/x/net v0.26.0 // indirect + golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.21.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sys v0.23.0 // indirect + golang.org/x/term v0.23.0 // indirect + golang.org/x/text v0.17.0 // indirect golang.org/x/time v0.3.0 // indirect + gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect + google.golang.org/grpc v1.65.0 // indirect google.golang.org/protobuf v1.34.2 // indirect + gopkg.in/fsnotify.v1 v1.4.7 // indirect gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/ini.v1 v1.51.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/api v0.31.0 // indirect k8s.io/klog/v2 v2.130.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect + k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect + k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/test/upgrade/go.sum b/test/upgrade/go.sum new file mode 100644 index 0000000000..90ee2c2a18 --- /dev/null +++ b/test/upgrade/go.sum @@ -0,0 +1,738 @@ +agones.dev/agones v1.45.0 h1:aUGiNpv7ThAqLycPO3VZQav4ICDBgfZvs2WAE58g8Sc= +agones.dev/agones v1.45.0/go.mod h1:fYrSnw5i3t6Ru9yxD4sYQbvnsFbABvalnzEZGuXbtDQ= +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/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.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +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/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/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +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/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/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/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +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/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.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/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/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= +github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +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.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= +github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= +github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= +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-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-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +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/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= +github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= +github.com/go-openapi/spec v0.19.5 h1:Xm0Ao53uqnk9QE/LlYV5DEU09UAgpliA85QoT9LzqPw= +github.com/go-openapi/spec v0.19.5/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= +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-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= +github.com/gogo/protobuf v1.1.1/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.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-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/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.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +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/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= +github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= +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.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +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/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-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k= +github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/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/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +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/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/sdk v0.1.1/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.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 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +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/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.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28= +github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +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/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= +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/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +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/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.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +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/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= +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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +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-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/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= +github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= +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/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA= +github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To= +github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= +github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +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 v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/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/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +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/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= +github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= +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/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.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= +github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/cast v1.3.0 h1:oget//CVOEoFewqQxwr0Ej5yjygnqGkvggSE/gB35Q8= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +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 h1:xVKxvI7ouOI5I+U9s2eeiUfMaWBVoXA3AWskkrqK0VM= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +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.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +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.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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= +github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= +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.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.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +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-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-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/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/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/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-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-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-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-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.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= +golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +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.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +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-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-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-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-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-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-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-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-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-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= +golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +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.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +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.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= +golang.org/x/time v0.3.0/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-20180917221912-90fa682c2a6e/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-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-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-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-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +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.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= +golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +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= +gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= +gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= +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/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/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-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-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/googleapis/api v0.0.0-20240528184218-531527333157 h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw= +google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 h1:BwIjyKYGsK9dMCBOorzRri8MQwmi7mT9rGHsCEinZkA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= +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.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.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +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.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +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-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 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.51.0 h1:AQvPpx3LzTDM0AjnIRlVFwFFGC+npRopjZxLJj6gdno= +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/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.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/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.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= +k8s.io/api v0.31.0 h1:b9LiSjR2ym/SzTOlfMHm1tr7/21aD7fSkqgD/CVJBCo= +k8s.io/api v0.31.0/go.mod h1:0YiFF+JfFxMM6+1hQei8FY8M7s1Mth+z/q7eF1aJkTE= +k8s.io/apimachinery v0.31.0 h1:m9jOiSr3FoSSL5WO9bjm1n6B9KROYYgNZOb4tyZ1lBc= +k8s.io/apimachinery v0.31.0/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= +k8s.io/client-go v0.31.0 h1:QqEJzNjbN2Yv1H79SsS+SWnXkBgVu4Pj3CJQgbx0gI8= +k8s.io/client-go v0.31.0/go.mod h1:Y9wvC76g4fLjmU0BA+rV+h2cncoadjvjjkkIGoTLcGU= +k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= +k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= +k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 h1:1dWzkmJrrprYvjGwh9kEUxmcUV/CtNU8QM7h1FLWQOo= +k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38/go.mod h1:coRQXBK9NxO98XUv3ZD6AK3xzHCxV6+b7lrquKwaKzA= +k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 h1:MDF6h2H/h4tbzmtIKTuctcwZmY0tY9mD9fNT47QO6HI= +k8s.io/utils v0.0.0-20240921022957-49e7df575cb6/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +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/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= +sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= +sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/test/upgrade/main.go b/test/upgrade/main.go index 6ce62924ae..17104a1eff 100644 --- a/test/upgrade/main.go +++ b/test/upgrade/main.go @@ -28,8 +28,12 @@ import ( "strings" "time" + agonesv1 "agones.dev/agones/pkg/apis/agones/v1" + "agones.dev/agones/pkg/client/clientset/versioned" + "agones.dev/agones/pkg/client/informers/externalversions" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes" @@ -48,17 +52,24 @@ const ( SidecarPullPolicy = "true" // LogLevel sets the Agones Helm configuration log level LogLevel = "debug" + // Timeout sets the amount of time to wait for resources to become ready. Should be more than the + // time for an Autopilot cluster to scale up. + Timeout = 10 * time.Minute // HelmChart is the helm chart for the public Agones releases HelmChart = "agones/agones" + // TestChart is the registry for Agones Helm chart development builds + TestChart = "./install/helm" // AgonesRegistry is the public registry for Agones releases AgonesRegistry = "us-docker.pkg.dev/agones-images/release" - // TestRegistry is the public registry for upgrade test container files - TestRegistry = "us-docker.pkg.dev/agones-images/ci/sdk-client-test" + // TestRegistry is the registry for Agones development builds + TestRegistry = "us-docker.pkg.dev/agones-images/ci" + // ContainerRegistry is the registry for upgrade test container files + ContainerRegistry = "us-docker.pkg.dev/agones-images/ci/sdk-client-test" ) var ( - // Dev is the current development version of Agones - Dev = os.Getenv("Dev") + // DevVersion is the current development version of Agones + DevVersion = os.Getenv("DevVersion") // ReleaseVersion is the latest released version of Agones (DEV - 1). ReleaseVersion = os.Getenv("ReleaseVersion") // PodName the name of the pod this container is running in @@ -81,8 +92,14 @@ func main() { log.Fatal("Could not create the kubernetes api clientset", err) } + agonesClient, err := versioned.NewForConfig(cfg) + if err != nil { + log.Fatal("Could not create the agones api clientset") + } + validConfigs := configTestSetup(ctx, kubeClient) - go watchGameServerPods(kubeClient, make(chan struct{}), make(map[string]podLog), len(validConfigs)*2) + go watchGameServers(agonesClient, len(validConfigs)*2) + go watchGameServerEvents(kubeClient) addAgonesRepo() runConfigWalker(ctx, validConfigs) cleanUpResources() @@ -111,9 +128,10 @@ type gameServerTemplate struct { CountsAndLists bool } -type podLog struct { +type gsLog struct { SdkVersion string GameServerVersion string + GameServerState string } type helmStatuses []struct { @@ -136,7 +154,7 @@ func configTestSetup(ctx context.Context, kubeClient *kubernetes.Clientset) []*c // Get the mappings of valid Kubernetes, Agones, and Feature Gate versions from the configmap. err := json.Unmarshal([]byte(VersionMappings), &versionMap) if err != nil { - log.Fatal("Could not Unmarshal", err) + log.Fatal("Could not Unmarshal ", err) } // Find valid Agones versions and feature gates for the current version of Kubernetes. @@ -148,7 +166,7 @@ func configTestSetup(ctx context.Context, kubeClient *kubernetes.Clientset) []*c countsAndLists := containsCountsAndLists(agonesVersion) ct.agonesVersion = agonesVersion if agonesVersion == "Dev" { - ct.agonesVersion = Dev + ct.agonesVersion = DevVersion // Game server container cannot be created at DEV version due to go.mod only able to access // published Agones versions. Use N-1 for DEV. ct.gameServerPath = createGameServerFile(ReleaseVersion, countsAndLists) @@ -285,19 +303,19 @@ func runConfigWalker(ctx context.Context, validConfigs []*configTest) { for _, config := range validConfigs { registry := AgonesRegistry chart := HelmChart - if config.agonesVersion == Dev { - // TODO: Update to templated value for registry and chart for Dev build - continue + if config.agonesVersion == DevVersion { + registry = TestRegistry + chart = TestChart } err := installAgonesRelease(config.agonesVersion, registry, config.featureGates, ImagePullPolicy, SidecarPullPolicy, LogLevel, chart) if err != nil { - log.Printf("installAgonesRelease err: %s", err) + log.Fatalf("installAgonesRelease err: %s", err) } // Wait for the helm release to install. Waits the same amount of time as the Helm timeout. var helmStatus string - err = wait.PollUntilContextTimeout(ctx, 10*time.Second, 10*time.Minute, true, func(ctx context.Context) (done bool, err error) { + err = wait.PollUntilContextTimeout(ctx, 10*time.Second, Timeout, true, func(_ context.Context) (done bool, err error) { helmStatus = checkHelmStatus(config.agonesVersion) if helmStatus == "deployed" { return true, nil @@ -309,7 +327,11 @@ func runConfigWalker(ctx context.Context, validConfigs []*configTest) { config.agonesVersion, helmStatus) } - go createGameServers(cancelCtx, config.gameServerPath) + gsReady := make(chan bool) + go createGameServers(cancelCtx, config.gameServerPath, gsReady) + // Wait for the first game server pod created to become ready + <-gsReady + close(gsReady) // Allow some soak time at the Agones version before next upgrade time.Sleep(1 * time.Minute) } @@ -332,6 +354,12 @@ func checkHelmStatus(agonesVersion string) string { log.Fatal("Could not Unmarshal", err) } + // Remove the commit sha from the DevVersion i.e. from 1.46.0-dev-7168dd3 to 1.46.0-dev + if agonesVersion == DevVersion { + r := regexp.MustCompile(`1\.\d+\.\d+-dev`) + agonesVersion = r.FindString(DevVersion) + } + for _, status := range helmStatus { if status.AppVersion == agonesVersion { return status.Status @@ -342,8 +370,9 @@ func checkHelmStatus(agonesVersion string) string { // Creates a gameserver yaml file from the mounted gameserver.yaml template. The name of the new // gameserver yaml is based on the Agones version, i.e. gs1440.yaml for Agones version 1.44.0 +// Note: This does not validate the created file. func createGameServerFile(agonesVersion string, countsAndLists bool) string { - gsTmpl := gameServerTemplate{Registry: TestRegistry, AgonesVersion: agonesVersion, CountsAndLists: countsAndLists} + gsTmpl := gameServerTemplate{Registry: ContainerRegistry, AgonesVersion: agonesVersion, CountsAndLists: countsAndLists} gsTemplate, err := template.ParseFiles("gameserver.yaml") if err != nil { @@ -377,12 +406,16 @@ func createGameServerFile(agonesVersion string, countsAndLists bool) string { } // Create a game server every five seconds until the context is cancelled. The game server container -// be the same binary version as the game server file. The SDK version is always the same as the +// is the same binary version as the game server file. The SDK version is always the same as the // version of the Agones controller that created it. The Game Server shuts itself down after the // tests have run as part of the `sdk-client-test` logic. -func createGameServers(ctx context.Context, gsPath string) { +func createGameServers(ctx context.Context, gsPath string, gsReady chan bool) { args := []string{"create", "-f", gsPath} + checkFirstGameServerReady(ctx, gsReady, args...) + ticker := time.NewTicker(5 * time.Second) + retries := 8 + retry := 0 for { select { @@ -391,39 +424,82 @@ func createGameServers(ctx context.Context, gsPath string) { return case <-ticker.C: _, err := runExecCommand(KubectlCmd, args...) - // TODO: Do not ignore error if unable to create due to something other than cluster scale up + // Ignore failures for ~45s at at time to account for the brief (~30s) during which the + // controller service is unavailable during upgrade. if err != nil { - log.Printf("Could not create Gameserver %s: %s", gsPath, err) + if retry > retries { + log.Fatalf("Could not create Gameserver %s: %s. Too many successive errors.", gsPath, err) + } + log.Printf("Could not create Gameserver %s: %s. Retries left: %d.", gsPath, err, retries-retry) + retry++ + } else { + retry = 0 } } } } -// watchGameServerPods watches all game server pods for CrashLoopBackOff. Errors if the number of -// CrashLoopBackOff backoff pods exceeds the number of acceptedFailures. -func watchGameServerPods(kubeClient *kubernetes.Clientset, stopCh chan struct{}, failedPods map[string]podLog, acceptedFailures int) { - // Filter by label agones.dev/role=gameserver to only game server pods - labelOptions := informers.WithTweakListOptions(func(opts *metav1.ListOptions) { - opts.LabelSelector = "agones.dev/role=gameserver" +// checkFirstGameServerReady waits for the Game Server Pod to be running. This may take several +// minutes in Autopilot. +func checkFirstGameServerReady(ctx context.Context, gsReady chan bool, args ...string) { + // Sample output: gameserver.agones.dev/sdk-client-test-5zjdn created + output, err := runExecCommand(KubectlCmd, args...) + if err != nil { + log.Fatalf("Could not create Gameserver: %s", err) + } + r := regexp.MustCompile(`sdk-client-test-\S+`) + gsName := r.FindString(string(output)) + // Game Server has too many states, so using the pod instead as there are only two healthy states. + // Includes the gs name to make output logs easier to read. + getPodStatus := []string{"get", "pod", gsName, "-o=custom-columns=:.status.phase,:.metadata.name", "--no-headers"} + + // Pod is created after Game Server, wait briefly before erroring out on unable to get pod. + retries := 0 + err = wait.PollUntilContextTimeout(ctx, 2*time.Second, Timeout, true, func(_ context.Context) (done bool, err error) { + out, err := runExecCommand(KubectlCmd, getPodStatus...) + if err != nil && retries > 2 { + log.Fatalf("Could not get Gameserver %s state: %s", gsName, err) + } + if err != nil { + retries++ + return false, nil + } + // Sample output: Running sdk-client-test-bbvx9 + podStatus := strings.Split(string(out), " ") + if podStatus[0] == "Running" || podStatus[0] == "Succeeded" { + gsReady <- true + return true, nil + } + return false, nil }) - kubeInformerFactory := informers.NewSharedInformerFactoryWithOptions(kubeClient, 5*time.Second, - informers.WithNamespace("default"), labelOptions) - podInformer := kubeInformerFactory.Core().V1().Pods().Informer() + if err != nil { + log.Fatalf("PollUntilContextTimeout timed out while wait for first gameserver %s to be Ready", gsName) + } +} - _, err := podInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{ +// watchGameServers watches all game servers for errors. Errors if the number of failed game servers +// exceeds the number of acceptedFailures. +func watchGameServers(agonesClient *versioned.Clientset, acceptedFailures int) { + stopCh := make(chan struct{}) + failedGs := make(map[string]gsLog) + + agonesInformerFactory := externalversions.NewSharedInformerFactory(agonesClient, 5*time.Second) + gsInformer := agonesInformerFactory.Agones().V1().GameServers().Informer() + + _, err := gsInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{ UpdateFunc: func(_, newObj interface{}) { - newPod := newObj.(*v1.Pod) - for _, cs := range newPod.Status.ContainerStatuses { - if cs.Name != "sdk-client-test" || cs.State.Waiting == nil || cs.State.Waiting.Reason != "CrashLoopBackOff" { - continue - } - gsVersion := newPod.Labels["agonesVersion"] - sdkVersion := newPod.Annotations["agones.dev/sdk-version"] - log.Printf("%s for pod: %s with game server binary version %s, and SDK version %s", cs.State.Waiting.Reason, newPod.Name, gsVersion, sdkVersion) - // Put failed pods into the map until it reaches capacity. - failedPods[newPod.Name] = podLog{GameServerVersion: gsVersion, SdkVersion: sdkVersion} - if len(failedPods) > acceptedFailures { - log.Fatalf("Too many Game Server pods in CrashLoopBackOff: %v", failedPods) + newGs := newObj.(*agonesv1.GameServer) + if newGs.Status.State == "Error" || newGs.Status.State == "Unhealthy" { + gsVersion := newGs.Labels["agonesVersion"] + sdkVersion := newGs.Annotations["agones.dev/sdk-version"] + log.Printf("Game server %s with binary version %s, and SDK version %s in %s state\n", + newGs.Name, gsVersion, sdkVersion, newGs.Status.State) + + // Put failed game servers into the map until it reaches capacity. + failedGs[newGs.Name] = gsLog{GameServerVersion: gsVersion, SdkVersion: sdkVersion, + GameServerState: string(newGs.Status.State)} + if len(failedGs) > acceptedFailures { + log.Fatalf("Too many Game Servers in Error or Unhealthy states: %v", failedGs) } } }, @@ -432,9 +508,51 @@ func watchGameServerPods(kubeClient *kubernetes.Clientset, stopCh chan struct{}, log.Fatal("Not able to create AddEventHandler", err) } - go podInformer.Run(stopCh) - if !cache.WaitForCacheSync(stopCh, podInformer.HasSynced) { - log.Fatal("Timed out waiting for caches to sync") + go gsInformer.Run(stopCh) + if !cache.WaitForCacheSync(stopCh, gsInformer.HasSynced) { + log.Fatal("Timed out waiting for game server informer cache to sync") + } +} + +// watchGameServerEvents watches all events on `sdk-client-test` containers for BackOff errors. The +// purpose is to catch ImagePullBackOff errors. +func watchGameServerEvents(kubeClient *kubernetes.Clientset) { + stopCh := make(chan struct{}) + + // Filter by Game Server `sdk-client-test` containers + containerName := "sdk-client-test" + containerPath := "spec.containers{sdk-client-test}" + fieldSelector := fields.OneTermEqualSelector("involvedObject.fieldPath", containerPath).String() + // First delete previous `sdk-client-test` events, otherwise there will be events from previous runs. + _, err := runExecCommand(KubectlCmd, []string{"delete", "events", "--field-selector", fieldSelector}...) + if err != nil { + log.Fatal("Could not delete `sdk-client-test` events", err) + } + + eventOptions := informers.WithTweakListOptions(func(opts *metav1.ListOptions) { + opts.FieldSelector = fieldSelector + }) + kubeInformerFactory := informers.NewSharedInformerFactoryWithOptions(kubeClient, 5*time.Second, + informers.WithNamespace("default"), eventOptions) + eventInformer := kubeInformerFactory.Core().V1().Events().Informer() + + _, err = eventInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{ + AddFunc: func(obj interface{}) { + newEvent := obj.(*v1.Event) + gsPodName := newEvent.InvolvedObject.Name + if newEvent.Reason == "Failed" { + log.Fatalf("%s on %s %s has failed. Latest event: message %s", containerName, newEvent.Kind, + gsPodName, newEvent.Message) + } + }, + }) + if err != nil { + log.Fatal("Not able to create AddEventHandler", err) + } + + go eventInformer.Run(stopCh) + if !cache.WaitForCacheSync(stopCh, eventInformer.HasSynced) { + log.Fatal("Timed out waiting for eventInformer cache to sync") } } @@ -455,7 +573,7 @@ func cleanUpResources() { // Apiservice v1.allocation.agones.dev, which is part of Service agones-system/agones-controller-service, // does not always get cleaned up on Helm uninstall, and needs to be deleted (if it exists) before // the agones-system namespace can be removed. - // Ignore the error, because an "error" means Helm already uninstall the apiservice. + // Ignore the error, because an "error" means Helm already uninstalled the apiservice. args = []string{"delete", "apiservice", "v1.allocation.agones.dev"} out, err := runExecCommand(KubectlCmd, args...) if err == nil { diff --git a/test/upgrade/permissions.yaml b/test/upgrade/permissions.yaml index 1f4a96005b..54e0d57215 100644 --- a/test/upgrade/permissions.yaml +++ b/test/upgrade/permissions.yaml @@ -24,18 +24,18 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: default - name: pod-reader + name: pod-manager rules: - apiGroups: [""] # "" indicates the core API group - resources: ["pods"] - verbs: ["get", "watch", "list"] + resources: ["pods", "events"] + verbs: ["get", "delete", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 # This role binding allows default service account to read all pods in the "default" namespace. # You need to already have a Role named "pod-reader" in that namespace. kind: RoleBinding metadata: - name: read-pods + name: manage-pods namespace: default subjects: - kind: ServiceAccount @@ -44,7 +44,7 @@ subjects: roleRef: # "roleRef" specifies the binding to a Role / ClusterRole kind: Role # this must be Role or ClusterRole - name: pod-reader # this must match the name of the Role or ClusterRole you wish to bind to + name: pod-manager # this must match the name of the Role or ClusterRole you wish to bind to apiGroup: rbac.authorization.k8s.io --- kind: ClusterRole @@ -202,23 +202,23 @@ roleRef: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: apiservices-creator + name: apiservices-manager rules: - apiGroups: ["apiregistration.k8s.io"] resources: ["apiservices"] - verbs: ["get", "watch", "list", "create", "patch"] + verbs: ["create", "delete", "get", "list", "patch", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: create-apiservices + name: manage-apiservices subjects: - kind: ServiceAccount name: agones-sa namespace: default roleRef: kind: ClusterRole - name: apiservices-creator + name: apiservices-manager apiGroup: rbac.authorization.k8s.io --- # Agones needs to be able to create Agones CustomResourceDefinitions @@ -249,23 +249,23 @@ roleRef: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: clusterrole-creator + name: clusterrole-manager rules: - apiGroups: ["rbac.authorization.k8s.io"] resources: ["clusterroles", "clusterrolebindings", "rolebindings"] - verbs: ["get", "watch", "list", "create", "patch"] + verbs: ["create", "delete", "get", "list", "patch", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: create-clusterroles + name: manager-clusterroles subjects: - kind: ServiceAccount name: agones-sa namespace: default roleRef: kind: ClusterRole - name: clusterrole-creator + name: clusterrole-manager apiGroup: rbac.authorization.k8s.io --- # Agones needs to be able to create deployments @@ -498,3 +498,41 @@ roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: sdk +--- +# Source: agones/templates/hooks/sa.yaml +# Permissions to grant to helm on helm uninstall +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + namespace: agones-system + name: helm-cleanup + labels: + app: agones +rules: + - apiGroups: ["agones.dev", "multicluster.agones.dev", "autoscaling.agones.dev"] + resources: ["fleets", "fleetautoscalers", "gameservers", "gameserversets", "gameserverallocationpolicies"] + verbs: ["delete", "get", "list"] + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "list"] + - apiGroups: [""] + resources: ["configmaps"] + verbs: ["create", "delete", "get", "list"] + - apiGroups: ["batch"] + resources: ["jobs"] + verbs: ["create", "delete", "get", "list"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: helm-cleanup-access + labels: + app: agones +subjects: + - kind: ServiceAccount + name: agones-sa + namespace: default +roleRef: + kind: ClusterRole + name: helm-cleanup + apiGroup: rbac.authorization.k8s.io diff --git a/test/upgrade/upgradeTest.yaml b/test/upgrade/upgradeTest.yaml index ebb301953c..4b549500aa 100644 --- a/test/upgrade/upgradeTest.yaml +++ b/test/upgrade/upgradeTest.yaml @@ -26,8 +26,7 @@ spec: spec: containers: - name: upgrade-test-controller - # TODO: Update image name to use a templated value for current Dev version - image: us-docker.pkg.dev/agones-images/ci/upgrade-test-controller:1.44.0-dev + image: us-docker.pkg.dev/agones-images/ci/upgrade-test-controller:${DevVersion} imagePullPolicy: Always env: - name: PodName diff --git a/test/upgrade/versionMap.yaml b/test/upgrade/versionMap.yaml index b0a7499de0..7c8a1724cd 100644 --- a/test/upgrade/versionMap.yaml +++ b/test/upgrade/versionMap.yaml @@ -18,82 +18,33 @@ kind: ConfigMap metadata: name: version-map data: - Dev: "1.44.0-dev" - ReleaseVersion: "1.43.0" + DevVersion: ${DevVersion} + ReleaseVersion: "1.45.0" version-mappings.json: | { "k8sToAgonesVersions": { - "1.25": [ - "1.34.0", - "1.35.0" - ], - "1.26": [ - "1.34.0", - "1.35.0", - "1.36.0", - "1.37.0", - "1.38.0", - "1.39.0" - ], - "1.27": [ - "1.34.0", - "1.35.0", - "1.36.0", - "1.37.0", - "1.38.0", - "1.39.0", - "1.40.0", - "1.41.0", - "1.42.0" - ], - "1.28": [ - "1.36.0", - "1.37.0", - "1.38.0", - "1.39.0", - "1.40.0", - "1.41.0", - "1.42.0", - "1.43.0", - "Dev" - ], "1.29": [ "1.40.0", "1.41.0", "1.42.0", "1.43.0", + "1.44.0", + "1.45.0", "Dev" ], "1.30": [ "1.43.0", + "1.44.0", + "1.45.0", + "Dev" + ], + "1.31": [ + "1.44.0", + "1.45.0", "Dev" ] }, "agonesVersionFeatureGates": { - "1.34.0": { - "alphaGates": ["PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, - "1.35.0": { - "alphaGates": ["PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, - "1.36.0": { - "alphaGates": ["PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, - "1.37.0": { - "alphaGates": ["CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, - "1.38.0": { - "alphaGates": ["CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, - "1.39.0": { - "alphaGates": ["CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking"], - "betaGates": [] - }, "1.40.0": { "alphaGates": ["CountsAndLists", "GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking"], "betaGates": ["DisableResyncOnSDKServer"] @@ -110,9 +61,17 @@ data: "alphaGates": ["GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking", "PortPolicyNone", "PortRanges", "RollingUpdateFix"], "betaGates": ["AutopilotPassthroughPort", "CountsAndLists", "DisableResyncOnSDKServer"] }, + "1.44.0": { + "alphaGates": ["PlayerAllocationFilter", "PlayerTracking", "PortPolicyNone", "PortRanges", "RollingUpdateFix", "ScheduledAutoscaler"], + "betaGates": ["AutopilotPassthroughPort", "CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods"] + }, + "1.45.0": { + "alphaGates": ["PlayerAllocationFilter", "PlayerTracking", "PortPolicyNone", "PortRanges", "RollingUpdateFix", "ScheduledAutoscaler"], + "betaGates": ["AutopilotPassthroughPort", "CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods"] + }, "Dev": { - "alphaGates": ["GKEAutopilotExtendedDurationPods", "PlayerAllocationFilter", "PlayerTracking", "PortPolicyNone", "PortRanges", "RollingUpdateFix", "ScheduledAutoscaler"], - "betaGates": ["AutopilotPassthroughPort", "CountsAndLists", "DisableResyncOnSDKServer"] + "alphaGates": ["PlayerAllocationFilter", "PlayerTracking", "PortPolicyNone", "PortRanges", "RollingUpdateFix", "ScheduledAutoscaler"], + "betaGates": ["AutopilotPassthroughPort", "CountsAndLists", "DisableResyncOnSDKServer", "GKEAutopilotExtendedDurationPods"] } } } diff --git a/vendor/modules.txt b/vendor/modules.txt index c556d56e9f..a59e9a90e6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -628,7 +628,7 @@ gopkg.in/yaml.v2 ## explicit gopkg.in/yaml.v3 # k8s.io/api v0.31.0 -## explicit; go 1.22 +## explicit; go 1.22.0 k8s.io/api/admission/v1 k8s.io/api/admissionregistration/v1 k8s.io/api/admissionregistration/v1alpha1 @@ -687,7 +687,7 @@ k8s.io/api/storage/v1alpha1 k8s.io/api/storage/v1beta1 k8s.io/api/storagemigration/v1alpha1 # k8s.io/apiextensions-apiserver v0.31.0 -## explicit; go 1.22 +## explicit; go 1.22.0 k8s.io/apiextensions-apiserver/pkg/apis/apiextensions k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1 k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1 @@ -703,7 +703,7 @@ k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextension k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1 k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake # k8s.io/apimachinery v0.31.0 -## explicit; go 1.22 +## explicit; go 1.22.0 k8s.io/apimachinery/pkg/api/apitesting k8s.io/apimachinery/pkg/api/apitesting/fuzzer k8s.io/apimachinery/pkg/api/apitesting/roundtrip @@ -763,7 +763,7 @@ k8s.io/apimachinery/pkg/watch k8s.io/apimachinery/third_party/forked/golang/json k8s.io/apimachinery/third_party/forked/golang/reflect # k8s.io/client-go v0.31.0 -## explicit; go 1.22 +## explicit; go 1.22.0 k8s.io/client-go/applyconfigurations k8s.io/client-go/applyconfigurations/admissionregistration/v1 k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1