diff --git a/.github/ISSUE_TEMPLATE/kubernetes_update.md b/.github/ISSUE_TEMPLATE/kubernetes_update.md index 9a4af7045e..020ab1f53b 100644 --- a/.github/ISSUE_TEMPLATE/kubernetes_update.md +++ b/.github/ISSUE_TEMPLATE/kubernetes_update.md @@ -41,10 +41,12 @@ List of items to do for upgrading to {version_1} {version_2} {version_3} - [ ] 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. + ([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) @@ -69,3 +71,4 @@ List of items to do for upgrading to {version_1} {version_2} {version_3} 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. +- \ No newline at end of file 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 3a8d6fb39b..9bae434fab 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 7616bde94a..9f8003014b 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 # @@ -271,14 +281,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&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 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/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..1511c2ab70 100644 --- a/install/helm/agones/templates/controller.yaml +++ b/install/helm/agones/templates/controller.yaml @@ -123,7 +123,7 @@ spec: value: {{ .Values.gameservers.additionalPortRanges | toJson | quote }} {{- end }} - name: SIDECAR_IMAGE # overwrite the GameServer sidecar image that is used - value: "{{ .Values.agones.image.registry }}/{{ .Values.agones.image.sdk.name}}:{{ default .Values.agones.image.tag .Values.agones.image.sdk.tag }}" + value: {{ .Values.agones.image.sdk.agonesSdkImage | quote }} - name: ALWAYS_PULL_SIDECAR # set the sidecar imagePullPolicy to Always value: {{ .Values.agones.image.sdk.alwaysPull | quote }} - name: SIDECAR_CPU_REQUEST 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/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/values.yaml b/install/helm/agones/values.yaml index 2938c04f13..5331f3f803 100644 --- a/install/helm/agones/values.yaml +++ b/install/helm/agones/values.yaml @@ -271,7 +271,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 @@ -280,6 +280,8 @@ agones: pullPolicy: IfNotPresent sdk: name: agones-sdk + tag: 1.46.0-dev + agonesSdkImage: us-docker.pkg.dev/agones-images/release/agones-sdk:1.46.0-dev cpuRequest: 30m cpuLimit: 0 memoryRequest: 0 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..5ed11789a3 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: @@ -17415,7 +17832,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 +17866,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 +17908,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 +17922,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 +18040,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 +18084,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 +18194,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 +18229,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 +18307,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 +18394,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 +18445,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 +18488,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 +18533,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/go/allocation.pb.go b/pkg/allocation/go/allocation.pb.go index 21b704134f..ed77cb3e9f 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 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_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/fleetautoscalers/fleetautoscalers.go b/pkg/fleetautoscalers/fleetautoscalers.go index 8663be99ad..0e7cc428ed 100644 --- a/pkg/fleetautoscalers/fleetautoscalers.go +++ b/pkg/fleetautoscalers/fleetautoscalers.go @@ -355,7 +355,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 48a27b3588..eec82195c0 100644 --- a/pkg/fleetautoscalers/fleetautoscalers_test.go +++ b/pkg/fleetautoscalers/fleetautoscalers_test.go @@ -1570,6 +1570,31 @@ func TestApplyListPolicy(t *testing.T) { wantErr: true, }, }, + "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/gameserversets/controller.go b/pkg/gameserversets/controller.go index 4292f886e4..dc0b169a7b 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,13 @@ 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) + } for _, gs := range list { if gs.IsBeingDeleted() { // don't count GS that are being deleted @@ -687,6 +692,14 @@ 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 +} + // 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..511be442d9 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,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("lists", func(t *testing.T) { @@ -416,6 +418,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 +463,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: nil, + 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/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/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/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..d078b6b1cb 100644 --- a/site/content/en/docs/Installation/Install Agones/helm.md +++ b/site/content/en/docs/Installation/Install Agones/helm.md @@ -136,6 +136,7 @@ The following tables lists the configurable parameters of the Agones chart and t | `agones.image.controller.pullSecret` | Image pull secret for the controller, allocator, sdk and ping image. Should be created both in `agones-system` and `default` namespaces | \`\` | | `agones.image.sdk.name` | Image name for the sdk | `agones-sdk` | | `agones.image.sdk.tag` | Image tag for the sdk | value of `agones.image.tag` | +| `agones.image.sdk.agonesSdkImage` | Image tag for the agones-sdk | `{{< agones-sdk-registry url >}}` | | `agones.image.sdk.cpuRequest` | The [cpu request][cpu-constraints] for sdk server container | `30m` | | `agones.image.sdk.cpuLimit` | The [cpu limit][cpu-constraints] for the sdk server container | `0` (none) | | `agones.image.sdk.memoryRequest` | The [memory request][memory-constraints] for sdk server container | `0` (none) | 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/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/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/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..78a164ea12 100644 --- a/test/e2e/fleetautoscaler_test.go +++ b/test/e2e/fleetautoscaler_test.go @@ -1209,6 +1209,87 @@ func TestListAutoscaler(t *testing.T) { } } +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() diff --git a/test/sdk/go/Makefile b/test/sdk/go/Makefile index 3c3e60551b..45b8d7726a 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.44.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/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